/* =============================================================================
   SITE STYLESHEET — CLEANED VERSION
   Fixes applied:
   1. Merged two :root variable blocks into one
   2. Removed 3× duplicated ending block (imdb-header → END BROWSE comment)
   3. Removed duplicate jQuery UI block (second full copy removed)
   4. Removed duplicate tr.browse definition
   5. Removed duplicate #unreadmsg definition
   6. Merged identical table.X + .X selector pairs into combined selectors
   7. Collapsed three .modern-btn definitions → kept final "new block" version
   8. Removed orphaned broken text fragment "one; border-radius: 0;"
   9. Merged input/select/textarea base declarations
   ============================================================================= */


/* =============================================================================
   1. CSS CUSTOM PROPERTIES (Variables)
   Merged from two separate :root blocks that existed in the original file.
   ============================================================================= */
:root {
  /* Tracker Color Palette */
  --tracker-bg:          #1a1a1a;
  --tracker-bg-dark:     #111111;
  --tracker-bg-alt:      #222222;
  --tracker-border:      #2a2a2a;
  --tracker-text:        #999999;
  --tracker-text-bright: #ffffff;
  --tracker-accent:      #ffc107;   /* Tracker Gold */
  --tracker-shadow:      0 10px 25px rgba(0, 0, 0, 0.5);

  /* Navigation / Status Bar */
  --st-nav-bg:           #1a1a1a;
  --st-nav-bg-alt:       #111111;
  --st-nav-border:       #2a2a2a;
  --st-nav-text:         #aab0b8;
  --st-nav-text-bright:  #ffffff;
  --st-nav-accent:       #ffc107;
  --st-nav-shadow:       0 10px 25px rgba(0, 0, 0, 0.45);
  --st-nav-height:       50px;
  --st-status-height:    58px;
  --st-status-bg:        #161616;
}


/* =============================================================================
   2. BASE / RESET
   ============================================================================= */
html {
  background: #000000;
  min-height: 100%;
}

body {
  font-family: verdana, arial, tahoma, helvetica, sans-serif;
  font-size: 8pt;
  line-height: 1.45;
  color: #fff;
  background-size: 100% 100%;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  min-width: 960px;
  min-height: 100vh;
  padding: 0 16px 50px;
  box-sizing: border-box;
}

.align-center{
	text-align: center !important;
}
.align-start{
	text-align: left !important;
}
.align-end{
	text-align: right !important;
}

.bold {
	font-weight: 700 !important;
}

li {
  margin-top: 6pt;
  margin-bottom: 6pt;
}

ul {
  margin-left: 16pt;
  margin-top: 0;
  margin-bottom: 0;
}

form {
  margin-top: 0;
  margin-bottom: 0;
}

h1 {
  font-size: 12pt;
  color: #e0e0e0;
}

h2 {
  font-size: 10pt;
  margin-bottom: 6px;
  color: #e0e0e0;
  margin-left: 10px;
}

/* h9–h15 are non-standard HTML elements used as styled labels */
h9 {
  background: #2a2a2a;
  border: 0px solid #b5b5b5 !important;
  color: #6f6f6f !important;
  text-indent: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  z-index: 9998 !important;
  border-radius: 2px;
  padding: 5px 10px 5px 4px;
}

h9 a,
h9 a:link {
  color: #6f6f6f !important;
}

h15 {
  background: #599345;
  color: #333 !important;
  border-width: 0;
  text-indent: 10px;
  font-size: 13px;
  display: inline-block;
  margin-left: 8px !important;
  z-index: 9998 !important;
  border-radius: 2px;
  padding: 12px 14px 12px 4px;
}

h15 a,
h15 a:link {
  color: #fff !important;
  text-decoration: none !important;
}

h10 {
  background: #333;
  width: 875px !important;
  color: #fff !important;
  border-width: 0;
  text-indent: 10px;
  font-size: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}


/* =============================================================================
   3. LAYOUT
   ============================================================================= */
#page-wrap {
  max-width: 1150px !important;
  width: 100%;
  color: #e0e0e0;
  background: #333 !important;
  border: 0 #333 solid !important;
  border-width: 0 !important;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

#head-container {
  max-width: 1200px;
  width: 100%;
  margin: 5px auto -2px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.l-w {
  min-width: 875px !important;
  background: #333 !important;
}

#site_title {
  float: left;
}

#site_title h1 {
  margin: 0;
  padding: 0;
}

div.startpage {
  width: 100%;
  max-width: 1200px;
  clear: both;
  padding: 0;
  margin: 0 auto;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.61);
  box-sizing: border-box;
}
.startTable {
  table-layout: fixed;
  border: 0;
  border-spacing: 0;
  width: 100%;
}
.startTable > tr > td {
  padding-bottom: 20px;
  border:none;
  position:relative;
  text-align: center;
}

.topTables {
  max-width: 1150px;
  width: 100%;
}

.absoluteRight {
  position: absolute;
  top: 0;
  right: 0;
}

.uiButtonReqReg {
  width: 150px;
}

.FLr {
  float: right;
  font-size: 12px;
}

.FLl {
  float: left;
  font-size: 12px;
  width: 690px;
}

.hidden {
  display: none;
}

.clear {
  clear: both;
  height: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.clickable {
  cursor: pointer;
}

.lfloat { float: left; }
.rfloat { float: right; }

div.floatl {
  float: left;
  margin-right: 20px;
}

.max_size {
  width: 702px;
}

.fHide {
  display: none !important;
}


/* =============================================================================
   4. TYPOGRAPHY & TEXT HELPERS
   ============================================================================= */
.small    { font-size: 7pt; }
.big      { font-size: 10pt; }
.red      { color: #e00; }
.yellow   { color: #970; }
.green    { color: #e0e0e0; }  /* Note: .green renders as light grey in this dark theme */
.grn      { color: green !important; }
.important { font-weight: 700; font-size: 8pt; }
.sublink  { font-style: italic; font-size: 7pt; font-weight: 400; }
.subTitle { color: #888; font-size: 11px; }
.reqinfo  { font-size: 9px; color: grey; display: block; }


span.smallfont { color: #e0e0e0; }
font.gray      { color: #aca899; text-decoration: underline; }

.cleanup:after {
  clear: both;
  content: ".";
  display: block;
  font-size: 0;
  height: 0;
  line-height: 0;
  visibility: hidden;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--tracker-accent, #ffc107);
  color: #000;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus { top: 0; }

*:focus-visible {
  outline: 2px solid var(--tracker-accent, #ffc107);
  outline-offset: 2px;
}


/* =============================================================================
   5. LINKS
   ============================================================================= */
a:link,
a:visited {
  text-decoration: none;
  color: #fff !important;
  font-size: inherit;
  font-weight: inherit;
}

a.index    { font-weight: inherit; color: #e0e0e0; }
a.biglink  { font-weight: inherit; font-size: inherit; color: #e0e0e0; }

a.normal:link,
a.normal:visited { color: #000 !important; text-decoration: none; }
a.normal:hover   { text-decoration: none; }

a.altlink:link,
a.altlink:visited { font-weight: inherit; color: #e0e0e0; text-decoration: none; }
a.altlink:hover   { text-decoration: underline; color: #e0e0e0; }

/* altlink_blue and altlink_green both render as #e0e0e0 in this dark theme */
a.altlink_blue:link,
a.altlink_blue:visited,
a.altlink_green:link,
a.altlink_green:visited { font-weight: inherit; color: #e0e0e0; text-decoration: none; }

a.altlink_blue:hover  { text-decoration: underline; }
a.altlink_green:hover { text-decoration: underline; color: #e0e0e0; }

a.close {
  background: transparent url(/pic/close-X.gif) repeat scroll 0 -15px;
  display: block;
  text-decoration: none;
  text-indent: -5000px;
  height: 15px;
  width: 15px;
  z-index: 90;
  overflow: hidden;
  top: 15px;
  right: 15px;
  position: absolute;
}

a.imdb-link {
  text-decoration: none;
  outline: none;
}

.fname a {
  font-weight: bold;
  color: #f00;
  text-decoration: none;
}


/* =============================================================================
   6. TABLES
   ============================================================================= */
table {
  border-collapse: collapse;
  border: none;
  background-color: #2a2a2a;
}

table.main,
table.mainouter {
  border: 1px solid #444;
  background-color: #2a2a2a;
  max-width: 1150px !important;
  width: 100%;
  margin: 0 auto 20px;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

table.main img {
  max-width: 100% !important;
  height: auto;
}

table.bottom {
  background: #333;
}

/* Image-resizer warning table (plugin-specific) */
table.ncode_imageresizer_warning {
  background: #ffffe1;
  color: #000;
  border: 1px solid #ccc;
  cursor: pointer;
}
table.ncode_imageresizer_warning td {
  font-size: 11px;
  color: red;
  vertical-align: middle;
}
table.ncode_imageresizer_warning td.td1 {
  padding: 2px;
}

/* IMDB data table */
table.imdb-table {
  width: 100%;
  z-index: 2;
  position: relative;
  background: none;
  font-size: 11px;
}

/* Contacts table */
table.contacts {
  width: 850px;
  background-color: #fafafa;
  border: 1px #000 solid;
  border-collapse: collapse;
  border-spacing: 0;
}

/* --- Merged: table.index-table-l and .index-table-l had identical styles --- */
table.index-table-l,
.index-table-l {
  width: 500px;
  background: #333;
  color: #e0e0e0;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
}

/* --- Merged: table.index-table-r and .index-table-r had identical styles --- */
table.index-table-r,
.index-table-r {
  width: 400px;
  background: #333;
  color: #e0e0e0;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
}

/* --- Merged: table.desc-table-lower and .desc-table-lower had identical styles --- */
table.desc-table-lower,
.desc-table-lower {
  width: 920px;
  background: #333;
  color: #e0e0e0;
  border-radius: 3px;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
}

/* desc-table: table vs class intentionally differ (max-width vs fixed 875px) */
table.desc-table {
  max-width: 1180px;
  width: 100%;
  background: none !important;
  color: #e0e0e0;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
  border: 0;
}

.desc-table {
  width: 875px;
  background: none !important;
  color: #e0e0e0;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
  border: 0;
}

table.mbox-table {
  width: 875px;
  background: #333;
  color: #e0e0e0;
  border-radius: 3px;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
  border: 1px solid #333;
}

table.bls-table {
  width: 865px;
  background: #333;
  color: #e0e0e0;
  border-radius: 3px;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
}
table.bls-table td { border: none !important; }

.topchart { border: 1px solid #555; }
.topchart td { border: 1px solid #555; }
.topchart .copy svg { fill: white; }


/* =============================================================================
   7. TABLE CELLS (td / th / tr)
   ============================================================================= */
td {
  color: #e0e0e0;
  border-color: #444;
  border-width: 1px;
}

td.browse {
  border-style: solid;
  border-width: 0 0 1px;
  background-color: #2a2a2a;
  color: #e0e0e0;
}

/* colhead4 = dark header; colhead5 = orange header */
td.colhead4 {
  background: #333;
  color: #fff !important;
  border-width: 0;
  text-indent: 10px;
  font-size: 14px;
  padding: 8px 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

td.colhead5 {
  background: #f5711e;
  color: #fff !important;
  border-width: 0;
  text-indent: 10px;
  font-size: 14px;
  padding: 8px 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.cat,
td.cat,
td.catTitle,
td.catHead,
td.catBottom,
td.cat_Head {
  padding: 5px 4px 6px;
  background: #333;
  color: #fff !important;
}

td.colhead {
  border-width: 0 1px 1px;
  font-weight: 700;
  color: #e0e0e0;
  background: #444 !important;
}

td.border   { border-width: 0; }
td.online   { border: 0; border-width: 0; }
td.bottom   { border: none; }
td.heading  { font-weight: 700; }
td.clear    { padding: 0; border: 0; background: transparent; }
td.navigation { font-weight: 700; font-size: 10pt; border: none; }
td.title    { font-size: 14pt; }

td.text {
  padding: 10pt;
  text-align: left;
}

td.comment {
  padding: 10pt;
  font-size: 8pt;
  text-align: left;
}

td.comment-m {
  padding: 10pt;
  font-size: 8pt;
  text-align: left;
  max-width: 670px !important;
}
td.comment-m a:link,
td.comment-m a:visited { color: #fff !important; }
td.comment-m a:hover   { color: #ffff00 !important; }

td.rowhead {
  font-weight: 700;
  color: #e0e0e0;
  text-align: right;
  border-width: 1px;
  white-space: normal;
}

/* tr.rowhead keeps same visual but adds border */
tr.rowhead {
  font-weight: 700;
  color: #e0e0e0;
  text-align: right;
  border-width: 1px;
  white-space: normal;
  border: solid 1px #5c5c5c;
}

td.rowheaddetails {
  font-weight: 700;
  color: #e0e0e0;
  text-align: right;
  padding: 10px 0 !important;
  border-width: 0;
}

td.rowheaddetails-o {
  font-weight: 700;
  background: #e0e0e0 !important;
  color: #000 !important;
  text-align: right;
  border-width: 1px;
}

td.embedded {
  border: none;
  padding: 0;
  text-align: left;
}

td.embedded2 {
  border: none;
  padding-left: 4px;
  text-align: left;
  background: #2a2a2a !important;
  background-color: #2a2a2a !important;
  background-image: none !important;
}

td.embedded3 {
  border: none;
  padding-left: 0;
  text-align: left;
  background: #2a2a2a !important;
  background-color: #2a2a2a !important;
  background-image: none !important;
}

td.embedded4 {
  border: none;
  padding-left: 0;
  text-align: left;
  background: #2a2a2a !important;
  background-color: #2a2a2a !important;
  background-image: none !important;
  width: 875px !important;
}

td.forum-icon {
  border: none;
  padding-left: 0;
  text-align: left;
  background: transparent !important;
  background-image: none !important;
  width: 40px !important;
  height: 40px !important;
}

td.embedded6 {
  border: none;
  padding-left: 0;
  text-align: left;
  background: #333 !important;
  background-color: #333 !important;
  background-image: none !important;
}

td.darkrow1 { background: #333 !important; }
td.contactDept {
  background-color: #9cc;
  border: 1px #000 solid;
  font-family: Verdana;
  font-weight: 700;
  font-size: 12px;
  color: #404040;
}

td.contact {
  border-bottom: 1px #69c dotted;
  font-family: Verdana, sans-serif, Arial;
  font-size: 0.7em;
  font-weight: bold;
  color: #fff;
  background-color: #28282a;
  padding: 4px 0 4px 8px;
}

td.first-row { height: 50px; }

th.imdb-th {
  font-size: 18px !important;
  font-weight: normal;
  color: #fff;
  padding: 10px 0 4px;
}

td.imdb-photo {
  width: 22%;
  border: 0;
  text-align: center;
  padding: 15px;
}

td.imdb-name {
  width: 80px;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

td.imdb-value {
  width: 500px;
  border: 0;
  letter-spacing: 1px;
  padding: 0 26px 10px 0;
}

th.desc-th {
  font-size: 16px;
  height: 30px;
  border: 0;
  border-bottom: 1px solid #dadada;
  letter-spacing: 1px;
  background: #1e2832;
  color: #ffffff !important;
  font-weight: bold;
  border-radius: 2px;
}

/* Torrent table */
.movehere {
  text-align: center;
}
.movehere th {
	background: #000
}
.movehere td {
	font-size: 10pt;
    border-bottom: 1px solid #000;
    border-top: 1px solid #252525;
}
.movehere .fa {
	font-size: 18px;
}
.movehere td .fa.fa-download:hover {
	color: green;
	transition: all .3s;
}

.movehere .bind {
	display:block;
}

.torrent-row-even { background-color: #1111115e; }
.torrent-text     { color: #e0e0e0; }

/* tr.browse — single definition (duplicate removed) */
tr.browse {
  border: none;
  background-color: #2a2a2a;
}

/* Hover highlight for torrent browse rows */
#torrenttable tr:hover td {
  background-color: #222222;
}

/* Top-5 browse widget */
.st-browse-top5 {
  width: 100%;
  margin: 12px auto 16px;
  background: linear-gradient(145deg, #242424, #1c1c1c);
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
  border-collapse: separate;
  border-spacing: 0;
}

.st-browse-top5 td {
  font-size: 11px;
  color: #ffffff !important;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.04) !important;
  background: rgba(255,255,255,0.02);
}

.st-browse-top5 td span,
.st-browse-top5 td font,
.st-browse-top5 td strong,
.st-browse-top5 td b { color: #ffffff !important; }

.st-browse-top5 tr:nth-child(even) td {
  background: rgba(255,255,255,0.04);
}

.st-browse-top5 .cat_Head,
.st-browse-top5 td.cat_Head {
  background: #2a2a2a !important;
  color: #f2f2f2 !important;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 12px;
  border: none !important;
  padding: 12px 14px;
}

.st-browse-top5 td a { color: #ffffff; text-decoration: none; font-weight: 600; }
.st-browse-top5 td a:hover { color: #ffffff; text-decoration: underline; }
.st-browse-top5 .rank-cell { width: 48px; text-align: center; font-weight: 700; color: #ffffff; }

tr.imdb-name { border: 0; border-bottom: 0 solid #dadada; }


/* =============================================================================
   8. IMAGES
   ============================================================================= */
img.border {
  border-style: solid;
  border-color: #000;
  border-width: 1px;
}

img.bbImg     { max-width: 820px; }
img.resizeit  { max-width: 802px; }

img.imdb-photo {
  border-radius: 10px;
  width: 100%;
  background: center / cover;
  padding-bottom: 48%;
  display: block;
}

.stylish img {
  width: 40px !important;
  height: 40px !important;
}

/* Zoom overlay on images */
.zoomWarp { display: inline-block; position: relative; }
.zoomWarp i.zoomBtn {
  display: none;
  height: 50px;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 50px;
  background: url(/pic/zoom.png) no-repeat 50%;
  cursor: pointer;
  margin: -25px 0 0 -25px;
}
.zoomWarp i.zoom {
  background: url(/pic/resized.png);
  height: 20px;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 20px;
}
.zoomWarp:hover i.zoomBtn { display: block !important; }
.zoomWarp .maxSize { width: 700px; }


/* =============================================================================
   9. FORMS & INPUTS
   Merged two near-identical base declarations (input/select/textarea).
   ============================================================================= */
input,
select,
textarea {
  font-family: "tahoma", "arial", "helvetica", "sans-serif";
  font-size: 8pt;
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #555;
  padding: 5px;
  border-radius: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #777;
  outline: none;
}

input[type="text"],
textarea {
  padding: 6px;
  border: 1px solid #8c8c8c;
  border-radius: 3px;
  background: #444;
  color: #e0e0e0;
}

input[type="text"]:focus,
textarea:focus {
  box-shadow: none !important;
  border: 1px solid #2e7d32;
  border-radius: 2px;
}

input[type="submit"],
input[type="button"] {
  background-color: #444;
  color: #fff;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: #555;
}

/* Dark theme calendar icon fix */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  filter: invert(0.7);
}
@media (prefers-color-scheme: dark) {
  input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    background-color: transparent;
  }
  input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(0.8);
  }
}

/* Search input overrides */
input.st-show {
  background: #fff !important;
  color: #333333 !important;
  border-radius: 0 !important;
  border: 1px solid #25323f !important;
  max-width: 861px !important;
}

input.st-search {
  background: #fff !important;
  color: #333333 !important;
  border-radius: 0 !important;
  border: 1px solid #25323f !important;
  max-width: 600px !important;
}

input.st-search:focus {
  background: #fff !important;
  color: #333333 !important;
  border-radius: 0 !important;
  border: 1px solid #25323f !important;
  box-shadow: none !important;
}

#staff-support {
  padding: 5px !important;
  background: #eee !important;
  border: 1px solid #9e9e9e !important;
}


/* =============================================================================
   10. BUTTONS
   ============================================================================= */

/* Generic .btn (legacy anchor-style buttons) */
.btn {
  box-shadow: inset 0 1px 0 0 #666;
  background: linear-gradient(to bottom, #444 5%, #333 100%);
  background-color: #444;
  border-radius: 0;
  text-indent: 0;
  border: 1px solid #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Arial;
  font-size: 15px;
  font-weight: 700;
  height: 28px;
  line-height: 1;
  width: 100px;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
}
.btn:hover {
  background: linear-gradient(to bottom, #333 5%, #444 100%);
  background-color: #333;
  cursor: pointer;
}
.btn:active { position: relative; top: 1px; }

/* button and input[type="submit"] share same gradient style */
button,
input[type="submit"] {
  box-shadow: inset 0 1px 0 0 #666;
  background: linear-gradient(to bottom, #444 5%, #333 100%);
  background-color: #444;
  text-indent: 0;
  border: 1px solid #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Arial;
  font-size: 11px;
  line-height: 1;
  width: auto;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
}
button:hover,
input[type="submit"]:hover {
  background: linear-gradient(to bottom, #333 5%, #444 100%);
  background-color: #333;
  cursor: pointer;
}

/* Orange donate button */
.donate-button {
  background: #f5711e !important;
  width: 135px !important;
  border-radius: 2px !important;
  border: 1px solid #c64e03 !important;
  padding: 3px 5px;
  box-shadow: none !important;
  height: 30px !important;
  font-size: 14px !important;
  transition: 0.3s;
}
.donate-button:hover {
  background: #333 !important;
  border: 1px solid #2e7d32 !important;
  transition: 0.3s;
}

/* Blue donate button (alternate) */
.donatee-button {
  background: #0017ff !important;
  width: 135px !important;
  border-radius: 2px !important;
  border: 1px solid #c64e03 !important;
  padding: 3px 5px;
  box-shadow: none !important;
  height: 30px !important;
  font-size: 14px !important;
  transition: 0.3s;
}
.donatee-button:hover {
  background: #333 !important;
  border: 1px solid #2e7d32 !important;
  transition: 0.3s;
}

/* Tag / navigation buttons */
a.tagbutton,
#left-but,
#right-but {
  box-shadow: inset 0 1px 0 0 #777;
  background: linear-gradient(to bottom, #555 5%, #444 100%);
  background-color: #555;
  text-indent: 0;
  border: 1px solid #444;
  padding: 2px 5px;
  display: inline-block;
  color: #fff;
  font-family: Arial;
  font-size: 11px;
  height: 24px;
  line-height: 24px;
  width: auto;
  text-decoration: none;
  text-align: center;
  margin-right: 2px;
}
a.tagbutton:hover,
#left-but:hover,
#right-but:hover {
  background: linear-gradient(to bottom, #333 5%, #444 100%);
  background-color: #333;
  cursor: pointer;
}

/* Message button (same style as edit/tag buttons, kept separate for semantic use) */
a.messagebutton,
a.editbutton {
  box-shadow: inset 0 1px 0 0 #666;
  background: linear-gradient(to bottom, #444 5%, #333 100%);
  background-color: #444;
  text-indent: 0;
  border: 1px solid #333;
  padding: 2px 5px;
  display: inline-block;
  color: #fff;
  font-family: Arial;
  font-size: 11px;
  height: 24px;
  line-height: 24px;
  width: auto;
  text-decoration: none;
  text-align: center;
  margin-right: 2px;
}
a.messagebutton:hover,
a.editbutton:hover {
  background: linear-gradient(to bottom, #333 5%, #444 100%);
  background-color: #333;
  cursor: pointer;
}

/* donate-li — floats the donate item to the right in the nav */
.donate-li { float: right; }


/* =============================================================================
   11. MODERN BUTTON SYSTEM
   (Final consolidated definition — two earlier versions were superseded by this)
   ============================================================================= */
.modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  border: 1px solid #666666;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: #dddddd;
}
.modern-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: #aaaaaa;
  color: #ffffff;
}
.modern-btn:active { transform: translateY(0); }

.modern-btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 4px;
}

.modern-btn-outline {
  background: transparent;
  border-color: #666666;
  color: #dddddd;
}
.modern-btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: #aaaaaa;
}

.modern-btn-primary {
  background: var(--tracker-accent);
  color: white;
  border-color: transparent;
}
.modern-btn-primary:hover {
  background: #e68900;
  transform: translateY(-1px);
}

.modern-btn-ghost {
  background: transparent;
  color: var(--tracker-text);
  border: 1px solid var(--tracker-border);
}
.modern-btn-ghost:hover {
  background: var(--tracker-bg-dark);
  color: var(--tracker-text-bright);
}

.modern-btn-danger {
  background: #dc3545;
  color: white;
  border-color: transparent;
}
.modern-btn-danger:hover { background: #c82333; }

.modern-btn:focus {
  outline: 2px solid var(--tracker-accent);
  outline-offset: 2px;
}

/* Browse search button variants */
.st-button,
.st-button-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.st-button-large { padding: 12px 24px; font-size: 13px; }
.st-button:hover,
.st-button-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,193,7,0.3);
}
.st-button:active,
.st-button-large:active { transform: translateY(0); }

.topver-toggle {
  background: var(--tracker-bg, #1a1a1a);
  color: var(--tracker-text-bright, #ffffff);
  border: 1px solid var(--tracker-border, #2a2a2a);
  font-size: 11px;
  padding: 6px 12px;
}
.topver-toggle:hover {
  background: var(--tracker-bg-alt, #222222);
  border-color: var(--tracker-accent, #ffc107);
}

/* Modern browse buttons */
.mbrowse-btn {
  background: #ff9f1c;
  border: none;
  color: #000;
  padding: 3px 23px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}
.mbrowse-btn.secondary { background: #333; color: #f5f5f5; }
.mbrowse-btn[disabled]  { opacity: .5; cursor: default; }
.mbrowse-btn:hover:not([disabled]),
.mbrowse-btn:focus-visible:not([disabled]) {
  background: #ffb74d;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
  transform: translateY(-1px);
  outline: none;
}
.mbrowse-btn.secondary:hover:not([disabled]),
.mbrowse-btn.secondary:focus-visible:not([disabled]) { background: #3a3a3a; }

/* Badge Component */
.modern-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 12px;
  background: var(--tracker-accent);
  color: white;
}
.modern-badge-secondary { background: #6c757d; }
.modern-badge-danger    { background: #dc3545; }
.modern-badge-success   { background: #28a745; }


/* =============================================================================
   12. NAVIGATION — Main Menu
   ============================================================================= */
#mainmenu-wrap {
  width: 100%;
  max-width: 1200px;
  position: relative;
  margin: auto;
}

ul#mainmenu {
  background: linear-gradient(to bottom, #64646499 0%, #333 30%, #333 72%, #19191b 85%, #19191b 100%);
  padding: 0;
  padding-left: 9px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
}

ul#mainmenu li {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

ul#mainmenu li,
ul#mainmenu ul.sub-menu li {
  list-style-type: none;
  display: inline-block;
}

ul#mainmenu li a {
  text-decoration: none;
  color: #fff;
  padding: 12px 8px !important;
  margin: 0 10px;
  display: inline-block;
  width: auto;
}

ul#mainmenu li a:hover { color: #ffd89b; }
ul#mainmenu li img { border: none !important; }

ul#mainmenu li ul.sub-menu {
  display: none;
  position: absolute;
  top: 40px;
  left: -26px;
  width: auto;
  padding: 0 0 0 1px;
  background: #333;
  z-index: 9999 !important;
  font-size: 11px !important;
  margin-top: 1px;
}

ul#mainmenu li ul.sub-menu li { padding: 0 !important; }
ul#mainmenu li ul.sub-menu li:hover { background: #444; }
ul#mainmenu li ul.sub-menu li a { padding: 9px 12px !important; min-width: 110px !important; }
ul.sub-menu li a { color: #fff !important; }
ul#mainmenu li:hover ul.sub-menu { display: block; }

/* Modern nav wrapper */
.st-nav-wrapper {
  background: var(--st-nav-bg);
  border: 1px solid var(--st-nav-border);
  border-radius: 4px;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  position: relative;
  z-index: 2000;
  box-shadow: 0 0 15px rgba(0,0,0,0.45);
  overflow: visible;
}

.st-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: var(--st-nav-height);
  align-items: stretch;
}

.st-nav-item { position: relative; flex: 1; display: flex; overflow: visible; }

.st-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
  width: 100%;
  color: var(--st-nav-text) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease;
  border-right: 1px solid var(--st-nav-border);
  letter-spacing: 0.3px;
  position: relative;
}
.st-nav-link i { font-size: 12px; }
.st-nav-item:last-child .st-nav-link { border-right: none; }

.st-nav-link:hover,
.st-nav-item:hover > .st-nav-link {
  background: var(--st-nav-bg-alt);
  color: var(--st-nav-text-bright) !important;
}

.st-nav-item:hover > .st-nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--st-nav-accent);
}

.st-nav-dropdown {
  position: absolute;
  top: 100%;
  left: -22px;
  min-width: 165px;
  background: var(--st-nav-bg-alt);
  border: 1px solid var(--st-nav-border);
  border-radius: 0 0 4px 4px;
  padding: 0px 0;
  display: none;
  flex-direction: column;
  box-shadow: var(--st-nav-shadow);
  z-index: 5000;
  list-style: none;
}
.st-nav-item:hover .st-nav-dropdown { display: flex; }

.st-nav-dropdown-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--st-nav-text) !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 400;
  transition: all 0.2s ease;
}
.st-nav-dropdown-item a:hover {
  background: var(--st-nav-bg);
  color: var(--st-nav-accent) !important;
  padding-left: 25px;
}

.st-nav-badge {
  background: #ff4444;
  color: #fff;
  border-radius: 2px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.st-nav-icon-animate { animation: stIconShake 1s ease-in-out 3; }

@keyframes stIconShake {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-8deg); }
  20%, 40%, 60%, 80% { transform: rotate(8deg); }
}
@keyframes stNavFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =============================================================================
   13. STATUS BAR
   ============================================================================= */
.st-status-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--st-status-bg);
  padding: 0 16px;
  margin: 10px auto;
  max-width: 1200px;
  height: var(--st-status-height);
  border-radius: 4px;
  border: 1px solid var(--st-nav-border);
  box-shadow: var(--st-nav-shadow);
  box-sizing: border-box;
  position: relative;
  z-index: 3000;
}

.st-status-left,
.st-status-right,
.st-status-actions,
.st-status-stat-item { display: flex; align-items: center; }

.st-status-left    { gap: 15px; flex: 1; }
.st-status-right   { gap: 20px; }
.st-status-actions { gap: 10px; }
.st-status-stat-item { gap: 4px; }

.st-status-profile-trigger {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
}
.st-status-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--st-nav-border);
  object-fit: cover;
  transition: transform 0.2s ease;
}
.st-status-profile-trigger:hover .st-status-avatar {
  transform: scale(1.08);
  border-color: var(--st-nav-accent);
}

.st-status-user-info {
  display: flex;
  gap: 2px;
  flex-direction: column;
  align-items: flex-start;
}
.st-status-username {
  font-size: 12px;
  font-weight: 500;
  color: var(--st-nav-text-bright) !important;
  text-decoration: none !important;
}
.st-status-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--st-nav-text);
}
.st-status-stat-item i.blue,
.st-status-stat-item span.blue { color: #3aa2ff; }
.st-status-stat-item i.red,
.st-status-stat-item span.red  { color: #ff6d6d; }

.st-status-action-btn {
  color: var(--st-nav-text) !important;
  text-decoration: none !important;
  font-size: 13px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-status-action-btn i { font-size: 16px; }
.st-status-action-btn span { font-size: 10px; font-weight: 500; letter-spacing: 0.3px; }
.st-status-action-btn:hover { color: var(--st-nav-accent) !important; transform: translateY(-2px); }

.st-status-action-btn--staff {
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #252a33;
  color: #ffd166 !important;
}
.st-status-action-btn--staff:hover {
  border-color: #ffc107;
  background: #2f3640;
  color: #ffe8a3 !important;
}

.st-status-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: #e74c3c;
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 10px;
  font-weight: 700;
}

.st-status-theme-toggle {
  background: var(--st-nav-bg-alt);
  border: 1px solid var(--st-nav-border);
  color: var(--st-nav-text-bright);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-size: 11px;
}
.st-status-theme-toggle:hover {
  border-color: var(--st-nav-accent);
  background: var(--st-nav-bg);
}

.st-status-time { font-size: 10px; color: var(--st-nav-text); white-space: nowrap; }
.st-status-profile-trigger .st-nav-dropdown { top: calc(100% - 5px); margin-top: 0; }


/* =============================================================================
   14. THEME TOGGLE BUTTON
   ============================================================================= */
#theme-btn {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
  border: 2px solid #34495e !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 16px !important;
  cursor: pointer !important;
  height: 24px !important;
  width: 24px !important;
  text-align: center !important;
  line-height: 32px !important;
  padding: 0 !important;
  margin: -2px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  position: relative !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#theme-btn:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  background: linear-gradient(135deg, #34495e 0%, #2980b9 100%) !important;
}
#theme-btn:active {
  transform: scale(0.95) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 1px 3px rgba(0,0,0,0.2) !important;
  top: 0 !important;
}
#theme-btn .theme-icon {
  position: absolute !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 20px !important;
  line-height: 1 !important;
}
#theme-btn .sun-icon  { opacity: 1 !important; transform: rotate(0deg) scale(1) !important; pointer-events: none !important; }
#theme-btn .moon-icon { opacity: 0 !important; transform: rotate(-180deg) scale(0) !important; pointer-events: none !important; }

#theme-btn.dark-theme {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
  border-color: #d68910 !important;
}
#theme-btn.dark-theme:hover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
}
#theme-btn.dark-theme .sun-icon  { opacity: 0 !important; transform: rotate(180deg) scale(0) !important; }
#theme-btn.dark-theme .moon-icon { opacity: 1 !important; transform: rotate(0deg) scale(1) !important; }


/* =============================================================================
   15. BANNER / CAROUSEL
   ============================================================================= */
#carousel1 {
  background: #eee;
  padding: 0 2px;
  border: 0;
}
#carousel1 img {
  width: 155px !important;
  height: 245px !important;
  margin: 0 5px;
}

/* SCX Banner Deck */
#scx-banner-deck.scx-banner-deck {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 2px auto 8px;
}

.scx-banner-card {
  position: relative;
  border-radius: 8px;
  border: 1px solid #374151;
  background: var(--scx-banner-bg, #1f2937);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  color: inherit;
  padding: 12px 14px 12px 16px;
  width: fit-content;
  max-width: min(100%, 900px);
}
.scx-banner-card--no-glow { box-shadow: none; }

.scx-banner-card__label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #3c2f00;
  color: #ffd166;
  border: 1px solid #8a6a00;
  box-shadow: inset 0 0 0 1px rgba(255,209,102,0.25);
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
  transform: rotate(-1deg);
}
.scx-banner-card--glow .scx-banner-card__label {
  animation: scxLabelBlink 1.2s ease-in-out infinite;
}
.scx-banner-card__content { line-height: 1.45; }
.scx-banner-card__link {
  color: inherit;
  text-decoration: none;
  display: block;
  font-weight: 600;
}
.scx-banner-card__link:link,
.scx-banner-card__link:visited { color: inherit !important; text-decoration: none !important; }
.scx-banner-card__link:hover,
.scx-banner-card__link:focus,
.scx-banner-card__link:active { text-decoration: none !important; }

@keyframes scxLabelBlink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50%       { opacity: 0.62; filter: brightness(1.25); }
}

.blink b { display: inline-block; padding: 0 2px; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}


/* =============================================================================
   16. NOTIFICATIONS & OVERLAYS
   ============================================================================= */
.notification {
  position: relative;
  margin: 0 0 15px;
  padding: 0;
  border: 1px solid;
  background-position: 10px 11px !important;
  background-repeat: no-repeat !important;
  width: 99.8%;
}
.notification div {
  display: block;
  font-style: normal;
  padding: 10px 10px 10px 36px;
  line-height: 1.5em;
}

.information {
  background: #ffcece url(/pic/information.png) 10px 11px no-repeat;
  border-color: #df8f8f;
  color: #666452;
}
.information a { color: #00f; }

.attention {
  background: #ffb84d url(/pic/information.png) 10px 11px no-repeat;
  border-color: #e6db55;
  color: #666452;
}

.commentbub {
  position: relative;
  margin: 0 0 5px;
  padding: 0;
  border: 1px solid;
  background-position: 10px 11px !important;
  background-repeat: no-repeat !important;
  font-size: 13px;
  width: 99.8%;
  background: #434017;
  border-color: #716c27;
  color: #666452;
}
.commentbub div {
  display: block;
  font-style: normal;
  color: #fff;
  padding: 10px 10px 10px 36px;
  line-height: 1.5em;
}
.commentbub a       { color: #000; }
.commentbub a:hover { color: #f00; }

/* AJAX feedback spinner */
#ajax-feedback {
  border: 4px solid #373737;
  position: fixed;
  text-align: center;
  top: 40%;
  font-size: 9px;
  left: 50%;
  margin-left: -75px;
  z-index: 100000;
  width: 150px;
  height: 150px;
  background-color: #373737;
  display: none;
  border-radius: 50%;
}
#ajax-feedback img {
  border: #373737 0 solid;
  width: 100px;
  display: block;
  margin: 25px auto 0 !important;
}

/* AJAX feedback (legacy .ajax-feedback class used elsewhere) */
.ajax-feedback {
  border: #b7b7b7 4px solid;
  position: fixed;
  text-align: center;
  text-transform: uppercase;
  bottom: 20px;
  color: black;
  font-size: 9px;
  left: 20px;
}
.ajax-feedback SPAN {
  background-image: url(/pic/white_line.png);
  border: #888888 1px solid;
  padding: 5px 20px;
  background-color: #f4f4f4;
  display: block;
  background-repeat: repeat-x;
}
.ajax-feedback IMG {
  border: #000000 1px solid;
  display: block;
}

/* vpbox (modal dialog) */
#vpbox {
  position: fixed;
  text-align: left;
  z-index: 9999;
}
#vpbox .xclose {
  cursor: pointer;
  opacity: 0.5;
  position: absolute;
  right: 5px; top: 5px;
  z-index: 1;
}
#vpbox .xclose:hover { opacity: 1 !important; }

#vpbox .content {
  background-color: #000;
  border-color: #333;
  border-radius: 10px;
  border-style: solid;
  border-width: 0 2px 3px 0;
  display: table;
  margin: 20px auto;
  width: auto;
}
#vpbox .content h3 {
  border-bottom: 2px solid #333;
  color: #fff;
  display: block;
  margin: 5px 14px 0;
  padding: 4px;
}

#vpbox .dialog { padding: 10px 20px; }
#vpbox .dialog .box_body { padding: 10px; }
#vpbox .dialog .txtcol { float: left; padding: 2px 0 0 12px; width: 400px; }
#vpbox .dialog .box_body .icon { float: left; }
#vpbox .dialog .txtcol .comment { padding: 10px 0; }
#vpbox .dialog .txtcol .reason { width: 395px; max-width: 395px; min-width: 395px; }

#vpbox .box_options {
  background: url(/pic/rowbg.png);
  border-top: 1px solid #555;
  padding: 5px 10px;
  margin: 15px -5px 0;
  text-align: right;
  clear: both;
  display: block;
}

#vpbox dl { margin: 0; padding: 0; }
#vpbox dl dt.label:first-child { padding: 0 0 0 2px !important; }
#vpbox dl dt.label { font-weight: 700; padding: 8px 0 0 2px; }
#vpbox dl dd { margin: 0; padding: 0; }
#vpbox dl dd input  { padding: 5px; font-size: 15px; width: 450px; }
#vpbox dl dd textarea {
  padding: 5px; font-size: 15px;
  width: 420px; min-height: 200px;
  min-width: 450px; max-width: 450px;
}
#vpbox dl dd.twocol  { margin: 0; display: block; position: relative; }
#vpbox dl dd select  { padding: 6px; }
#vpbox dl dt div.labFix { display: inline-block; width: 185px; }
#vpbox dl dd div.labFix {
  display: inline-block;
  width: 184px;
  vertical-align: top;
  position: relative;
}
#vpbox dl dd div.labFix .offer { width: 110px; padding: 5px; }
#vpbox dl dd div.labFix .offerLimit {
  color: red;
  z-index: 2;
  position: absolute;
  font-size: 9px;
  left: 87px; bottom: 1px;
}

#awesomebar {
  z-index: 9999;
  top: 0;
  position: fixed;
  width: 100% !important;
  background-color: #222;
}
.activeawesome { box-shadow: 0 6px 33px #000; }


/* =============================================================================
   17. MESSAGING / CHAT (dark theme overrides)
   ============================================================================= */
.chat-input,
.chat-search-input {
  background: #2c2e33 !important;
  color: #e4e5e7 !important;
  border-color: #3f4148 !important;
}
.chat-input:focus,
.chat-search-input:focus {
  background: #2c2e33 !important;
  border-color: #1e90ff !important;
  box-shadow: 0 0 0 2px rgba(30,144,255,0.2) !important;
}

.chat-container    { background: #1a1b1e !important; border-color: #2c2e33 !important; }
.chat-sidebar      { background: #1a1b1e !important; border-right-color: #2c2e33 !important; }
.chat-main         { background: #1a1b1e !important; }
.chat-header       { background: #1a1b1e !important; border-bottom-color: #2c2e33 !important; }
.chat-input-area   { background: #1a1b1e !important; border-top-color: #2c2e33 !important; }
.emoji-bar         { background: #2c2e33 !important; border-color: #3f4148 !important; }

.message-received  { background: #1a1b1e !important; border-color: #2c2e33 !important; color: #e4e5e7 !important; }
.message-sent      { background: #182a45 !important; color: #ffffff !important; }
.message-sent a    { color: #e0f2fe !important; }

.msg-delete-btn    { background: #374151 !important; border-color: #4b5563 !important; color: #ef4444 !important; }
.chat-send-btn     { background: #1e90ff !important; }
.chat-header-name  { color: #e4e5e7 !important; }
.conv-name         { color: #e4e5e7 !important; }
.conv-time,
.conv-preview      { color: #909296 !important; }
.chat-empty-state  { color: #909296 !important; }
.typing-indicator  { background: #1a1b1e !important; border-color: #2c2e33 !important; }
.typing-dot        { background: #909296 !important; }

/* #unreadmsg — single definition (duplicate removed) */
#unreadmsg { display: none; }


/* =============================================================================
   18. MESSAGES / INBOX (div.Messages)
   ============================================================================= */
div.Messages {
  text-align: left;
  border-width: 0;
  padding: 0;
}
div.Messages .unread_btn   { margin-right: 0; }
div.Messages span.headof   { color: #fff; }
div.Messages .rows         { overflow: hidden; background: url(/pic/rowbg.png); }
div.Messages .dropline     { border-bottom: 1px solid #a8a8a8; }
div.Messages .padding      { padding-top: 5px; padding-bottom: 5px; }
div.Messages .padding-mess { padding: 10px; }
div.Messages .margin       { margin: 0; }
div.Messages ul            { list-style: none; padding: 0; }
div.Messages div.rowhead   { border-bottom: 0; overflow: hidden; background-color: #2e7d32; }

div.Messages li.status_icon { padding-left: 40px; margin-left: 20px; }
div.Messages li.double      { line-height: 12px; }
div.Messages li.single      { line-height: 24px; padding-left: 10px; }
div.Messages li.subject     { float: left; width: 560px; height: 24px; }
div.Messages li.status      { text-align: center; float: left; width: 50px; line-height: 24px; height: 24px; }
div.Messages li.read        { background: url(/pic/not-new-m.png) no-repeat 0 50%; }
div.Messages li.unread      { background: url(/pic/new-m.png) no-repeat 0 50%; }
div.Messages li.name        { float: right; width: 80px; text-align: center; line-height: 24px; height: 24px; }
div.Messages li.check_box   { border-left: 0; padding: 7px 15px 3px 5px; float: right; width: 10px; line-height: 24px; height: 24px; }


/* =============================================================================
   19. MODELBOX (request/modal list UI)
   ============================================================================= */
div.modelbox {
  text-align: left;
  border: 1px solid #000;
  padding: 0;
  max-width: 1150px;
  width: 100%;
}
div.modelbox h3           { padding: 15px 0 0; margin: 0; }
.highlight                { background-color: #000 !important; }
div.modelbox .unread_btn  { margin-right: 0; }
div.modelbox span.headof  { color: #fff; font-weight: bold; }
div.modelbox li.statushd  { border-right: 1px solid #000; }
div.modelbox .rows        { overflow: hidden; padding: 7px; background: url(/pic/rowbg.png); }
div.modelbox .dropline    { border-bottom: 1px solid #555; }

div.modelbox .padding,
div.modelbox ul li        { padding-top: 3px; }

div.modelbox .padding-mess { padding: 10px; display: none; }

div.modelbox .margin,
div.modelbox ul,
div.modelbox ul li        { margin: 0; }

div.modelbox div.options  { overflow: hidden; border-top: 1px solid #555; padding: 5px 0 0; }
div.modelbox .options ul  { color: #fff; font-weight: bold; }
div.modelbox ul           { list-style: none; padding: 0; }
div.modelbox div.rowhead  { border-bottom: 1px solid #555555; overflow: hidden; background-color: #000; }
div.modelbox li.status_icon { padding-left: 68px; background-repeat: no-repeat; }
div.modelbox li.double    { line-height: 13px; }
div.modelbox li.single    { line-height: 40px; padding-left: 11px; }
div.modelbox li.subject   { float: left; width: 545px; height: 47px; cursor: pointer; position: relative; }

li.subject span.date      { font-size: 9px; color: grey; bottom: 7px; position: absolute; }
li.subject span.request   { color: #000; display: block; }

div.modelbox li.status    { text-align: center; float: left; width: 63px; line-height: 40px; height: 40px; }
div.modelbox li.name      { float: right; width: 80px; text-align: center; line-height: 40px; height: 40px; }
div.modelbox .rowhead li.check_box { width: 18px; }
div.modelbox li.check_box { padding: 7px 15px 3px 5px; float: right; width: 10px; line-height: 40px; height: 40px; }
div.modelbox div.messbody { overflow: auto; margin: 0 0 15px; }
.filled { background-color: #69A74E !important; }


/* =============================================================================
   20. NEWS BLOCK
   ============================================================================= */
.news-wrap {
  width: 100%;
  margin: 6px auto;
  clear: both;
  border: 1px solid #c3cbd1;
}
.news-head {
  font-size: 11px;
  padding: 1px 14px 3px;
  margin-left: 6px;
  line-height: 15px;
}
.news-body {
  padding: 1px 6px 2px;
  display: none;
  border-top: 1px solid #c3cbd1;
}


/* =============================================================================
   21. FORUM
   ============================================================================= */
.forum-head     { background: #333 !important; width: 100% !important; }
.forum-head a   { background: #333 !important; width: 100% !important; }

.forum-title {
  max-width: 1150px;
  width: 100%;
  background: #373737;
  color: #fff !important;
  border-width: 0;
  text-indent: 10px;
  font-size: 14px;
  padding: 12px 0;
  border-radius: 3px;
  text-align: left !important;
}
.forum-title a,
.forum-title a:link { color: #fff !important; text-decoration: none !important; }

#details-comments-wrap {
  max-width: 1150px;
  width: 100%;
  background: #333;
  color: #e0e0e0;
  border-radius: 3px;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
}
#details-comments-wrap textarea {
  background: #444;
  color: #e0e0e0;
  border: 1px solid #555;
}

#forums-main-wrap {
  max-width: 1140px;
  width: 100%;
  color: #e0e0e0;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
}


/* =============================================================================
   22. INDEX / HOMEPAGE WIDGETS
   ============================================================================= */
.index-poll-title {
  max-width: 1180px;
  width: 100%;
  background: #333;
  color: #fff !important;
  border-width: 0;
  text-indent: 10px;
  font-size: 14px;
  padding: 8px 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  text-align: left !important;
}

.index-newb {
  max-width: 1180px;
  width: 100%;
  background: #1e94b5;
  color: #fff !important;
  border: 1px solid #19758e;
  text-indent: 10px;
  font-size: 12px;
  padding: 6px 0;
  border-radius: 2px;
  text-align: center !important;
}

.index-nouns {
  width: 950px;
  margin: auto;
  background: #007b0c;
  color: #fff !important;
  border: 0;
  text-indent: 10px;
  font-size: 12px;
  padding: 6px 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.index-nouns a:link,
.index-nouns a { color: #fff !important; text-decoration: none; font-weight: 700; }

.index-news-post {
  max-width: 1127px;
  width: 100%;
  color: #e0e0e0 !important;
  font-size: 10px;
  padding: 6px 5px;
  border-radius: 2px;
  text-align: left !important;
}

.index-users-online-desc {
  width: 895px;
  background: #111;
  border: 1px solid #b5b5b5 !important;
  color: #e0e0e0 !important;
  border-width: 0;
  text-indent: 10px;
  font-size: 10px;
  padding: 6px 0;
  border-radius: 2px;
  text-align: center !important;
}

.index-torrent-c {
  width: 860px;
  background: #444;
  border: 1px solid #666 !important;
  color: #e0e0e0 !important;
  border-width: 0;
  text-indent: 10px;
  font-size: 10px;
  padding: 6px 0;
  border-radius: 2px;
  text-align: center !important;
}

.index-torrent-b {
  width: 860px;
  background: #d13a3a;
  border: 1px solid #b22929 !important;
  color: #fff !important;
  border-width: 0;
  text-indent: 10px;
  font-size: 10px;
  padding: 6px 0;
  border-radius: 2px;
  text-align: center !important;
}

.st-index-newest-user {
  width: 920px;
  background: #1e94b5;
  color: #fff !important;
  border: 1px solid #19758e;
  text-indent: 10px;
  font-size: 12px;
  padding: 6px 0;
  border-radius: 2px;
  text-align: center !important;
}
.st-index-newest-user a:link,
.st-index-newest-user a { color: #fff !important; text-decoration: none; font-weight: bold; }

.st-browse-cat {
  width: 920px;
  margin: 0 auto 10px;
  background: #444;
  color: #e0e0e0 !important;
  border: 1px solid #666;
  font-size: 10px;
  padding: 6px 2px;
  text-align: center !important;
}

/* Torrent clients widget */
#index-torrent-clients {
  width: 860px !important;
  margin-left: 2px !important;
}

#index-clients {
  width: 90%;
  height: 40px;
  margin: auto;
  padding: 10px;
  text-align: left !important;
}

#index-clients-client {
  float: left;
  width: 272px;
  margin: 0 2px 4px 2px;
  background: #e0e0e0;
  border: 1px solid #b5b5b5 !important;
  color: #333 !important;
  padding: 6px 4px;
  height: 40px;
  border-radius: 2px;
  text-align: left !important;
}

#index-clients-left {
  width: 415px;
  height: 40px;
  float: left;
  background: #e0e0e0;
  border: 1px solid #b5b5b5 !important;
  color: #333 !important;
  padding: 6px 5px;
  border-radius: 2px;
  text-align: left !important;
}

#index-clients-right {
  margin-left: 435px;
  width: 415px;
  height: 40px;
  background: #e0e0e0;
  border: 1px solid #b5b5b5 !important;
  color: #333 !important;
  padding: 6px 5px;
  border-radius: 2px;
  text-align: left !important;
}

#index-clients-left img,
#index-clients-right img,
#index-clients-client img {
  width: 42px; height: 42px;
  left: 0; padding-right: 12px; padding-top: 5px; padding-left: 5px;
}

#index-clients-graphic {
  margin: -6px 0 0 -5px;
  height: 52px;
  width: 52px;
  background: #c6c6c6;
  border-right: 1px solid #b5b5b5;
  float: left;
  border-radius: 2px;
}


/* =============================================================================
   23. DETAILS PAGE
   ============================================================================= */
.details-title-f {
  max-width: 1180px;
  width: 100%;
  background: #373737;
  color: #fff !important;
  border-width: 0;
  text-indent: 10px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 0;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  text-align: left !important;
}

.details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
}

.details-section {
  background: var(--tracker-bg, #1a1a1a);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.details-section-header {
  background: linear-gradient(135deg, #3a3a3a, #2d2d2d);
  padding: 12px 20px;
  border-bottom: 1px solid var(--tracker-border, #2a2a2a);
  font-size: 14px;
  font-weight: 600;
  color: var(--tracker-text-bright, #ffffff);
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-section-body { padding: 20px; }

.details-title-wrap  { text-align: center; margin-bottom: 20px; padding: 0 20px; }
.details-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--tracker-text-bright, #ffffff);
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
}
.details-title a { color: inherit; text-decoration: none; }
.details-title img { vertical-align: middle; margin-left: 15px; opacity: 0.8; transition: opacity 0.2s; }
.details-title img:hover { opacity: 1; }
.details-title-link { color: #ffffff; text-decoration: none; }

.details-download-wrap     { text-align: center; margin: 20px 0; }
.details-download-wrap a   { display: inline-block; transition: transform 0.2s ease; }
.details-download-wrap a:hover { transform: scale(1.05); }
.details-download-wrap-inner { text-align: center; }

.details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 20px;
  background: var(--tracker-bg-alt, #000000);
  border-bottom: 1px solid var(--tracker-border, #f5c518);
}
.details-actions-primary  { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.details-actions-secondary { display: flex; flex-wrap: wrap; gap: 10px; }

.details-meta-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 8px 0;
}
.details-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--tracker-bg-alt, #222222);
  border-radius: 4px;
  border: 1px solid var(--tracker-border, #2a2a2a);
  white-space: nowrap;
  font-size: 12px;
}
.details-meta-icon  { font-size: 14px; line-height: 1; }
.details-meta-label { display: none; }
.details-meta-value { font-size: 12px; font-weight: 500; color: var(--tracker-text-bright, #ffffff); }
.details-meta-value a { color: var(--tracker-accent, #ffc107); text-decoration: none; }
.details-meta-value a:hover { text-decoration: underline; }
.details-meta-item.freeleech { background: rgba(76,175,80,0.15); border-color: #4caf50; }

.details-description { line-height: 1.7; color: var(--tracker-text, #cccccc); font-size: 13px; }
.details-description img { max-width: 100%; height: auto; border-radius: 4px; }

.details-edit-area  { position: relative; min-height: 100px; }
.details-edit-button {
  position: absolute;
  top: 10px; right: 10px;
  width: 80px; height: 24px;
  background: transparent url(/pic/edit_out.png) no-repeat;
  display: none;
  z-index: 10;
}
.details-edit-area:hover .details-edit-button { display: block; }
.details-edit-button:hover { background-image: url(/pic/edit_over.png); }
.details-edit-button span  { display: none; }

.details-related .movehere { width: 100% !important; margin: 0; }
.details-related .movehere .book,
.details-related .movehere img[title="Bookmark"] { visibility: hidden; }

.details-comments-section { margin-top: 20px; }
.details-comments-title {
  background: linear-gradient(135deg, #3a3a3a, #2d2d2d);
  padding: 12px 20px;
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--tracker-text-bright, #ffffff);
}
.details-comment-form {
  background: var(--tracker-bg-alt, #222222);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-top: 0;
  padding: 20px;
  border-radius: 0 0 8px 8px;
}
.details-comment-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  background: var(--tracker-bg, #1a1a1a);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: 6px;
  color: var(--tracker-text-bright, #ffffff);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}
.details-comment-form textarea:focus {
  outline: none;
  border-color: var(--tracker-accent, #ffc107);
  box-shadow: 0 0 0 3px rgba(255,193,7,0.1);
}
.details-comment-form .btn { margin-top: 15px; padding: 10px 24px; font-size: 13px; font-weight: 600; }
.details-comment-rules { text-align: center; margin-bottom: 15px; color: var(--tracker-text, #999999); font-size: 12px; }
.loading-spinner         { display: none; vertical-align: middle; }
.loading-spinner.visible { display: inline; }


/* =============================================================================
   24. NEW BLOCK LAYOUT SYSTEM (details.php redesign)
   ============================================================================= */

/* Block 1 — Title Bar */
.block-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 60px;
  background: #111111;
  padding: 0 16px;
  box-sizing: border-box;
  gap: 18px;
}

.title-left  { display: flex; align-items: center; }
.title-right { display: flex; align-items: center; }

.torrent-title { font-size: 16px; font-weight: bold; color: #ffffff; margin: 0; line-height: 1.2; }
.search-icon   { font-size: 14px; color: #cccccc; text-decoration: none; opacity: 0.8; transition: opacity 0.2s; }
.search-icon:hover { opacity: 1; }

.download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #e05a6e;
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.download-btn:hover { background: #d04a5e; transform: translateY(-1px); }
.download-icon { font-size: 16px; }

/* Block 2 — Meta Strip */
.block-meta-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: 44px;
  background: #222222;
  padding: 0 16px;
  box-sizing: border-box;
  overflow-x: auto;
  white-space: nowrap;
}
.meta-item    { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #cccccc; white-space: nowrap; }
.meta-icon    { font-size: 14px; line-height: 1; }
.meta-value   { font-weight: 500; }
.meta-toggle  { color: #ffc107; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.meta-toggle:hover { color: #ffd54f; }
.meta-link    { color: #cccccc; text-decoration: none; }
.meta-link:hover { color: #ffffff; text-decoration: underline; }

/* Block 3 — IMDB/Media Panel */
.block-imdb-panel { width: 100%; border: none; border-radius: 0; }
.imdb-header {
	display: block !important;
    height: auto !important;
    padding: 10px;
    font-size: 21px !important;
}
.imdb-content { background: #1e1e1e; padding: 20px; display: flex; gap: 20px; }
.imdb-poster  { width: 220px; flex: 0 0 220px; }
.imdb-poster img { width: 100%; height: auto; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.imdb-info    { flex: 1; }
.imdb-row     { display: flex; align-items: flex-start; margin-bottom: 16px; }
.imdb-label {
  width: 90px;
  text-align: right;
  padding-right: 16px;
  color: #f5c518;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.imdb-value          { flex: 1; color: #dddddd; font-size: 14px; text-align: left; }
.imdb-value.rating   { color: #f5c518; }
.imdb-value.plot     { line-height: 1.6; }

.trailer-btn {
  background: #cc0000; color: #ffffff;
  border: none; border-radius: 4px;
  padding: 8px 18px; font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s;
}
.trailer-btn:hover { background: #aa0000; }

.imdb-link { color: #aaaaaa; text-decoration: none; word-break: break-all; }
.imdb-link:hover { color: #cccccc; text-decoration: underline; }

.imdb-quick-update {
  border-radius: 4px; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
}
.quick-update-btn {
  border: 1px solid #aaaaaa; color: #dddddd; background: transparent;
  border-radius: 3px; padding: 4px 10px; font-size: 12px; cursor: pointer;
  transition: all 0.2s;
}
.quick-update-btn:hover { background: rgba(255,255,255,0.08); border-color: #cccccc; }
.quick-update-text { color: #888888; font-size: 13px; }

/* Block 4 — Action Buttons Bar */
.block-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background: #1a1a1a;
}
.actions-left,
.actions-right { display: flex; gap: 8px; }
.actions-left  { justify-content: flex-start; }
.actions-right { justify-content: flex-end; }

/* Block 5 — Description */
.block-description { width: 100%; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.description-header {
  width: 100%; height: 36px;
  background: #000000; color: #ffffff;
  font-size: 14px; font-weight: bold;
  display: flex; align-items: center;
  padding-left: 14px; margin: 0; box-sizing: border-box;
}
.description-content { background: #1e1e1e; padding: 16px; color: #cccccc; font-size: 14px; line-height: 1.7; }

.description-edit-area { position: relative; min-height: 100px; }
.edit-button {
  position: absolute; top: 10px; right: 10px;
  width: 80px; height: 24px;
  background: transparent url(/pic/edit_out.png) no-repeat;
  display: none; z-index: 10;
}
.description-edit-area:hover .edit-button { display: block; }
.edit-button:hover { background-image: url(/pic/edit_over.png); }
.edit-button span  { display: none; }

/* Filelist Panel */
.filelist-panel { display: none; overflow: hidden; background: #1e1e1e; border-bottom: 1px solid #333; }
.filelist-panel.fl-open { display: block; }
.filelist-header {
  background: #333333; padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center;
  color: #ffffff; font-size: 13px;
}
.filelist-title { font-weight: 600; }
.filelist-close { color: #cccccc; text-decoration: none; cursor: pointer; }
.filelist-close:hover { color: #ffffff; }
.filelist-content { padding: 12px 16px; }
.filelist-table { width: 100%; background: #1a1a1a; border-collapse: collapse; }
.filelist-header-cell { background: #333333; color: #ffffff; padding: 8px 12px; font-weight: bold; text-align: left; }
.filelist-table td { padding: 6px 12px; border-bottom: 1px solid #333333; color: #cccccc; }
.filelist-table td:last-child { text-align: right; }

/* Comments Section */
.comments-section { margin-top: 20px; }
.comments-form {
  background: var(--tracker-bg-alt, #222222);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-top: 0; padding: 20px;
  border-radius: 0 0 8px 8px;
}
.comments-form textarea {
  width: 100%; min-height: 100px; padding: 12px;
  background: var(--tracker-bg, #1a1a1a);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: 6px;
  color: var(--tracker-text-bright, #ffffff);
  font-size: 13px; line-height: 1.5;
  resize: vertical; box-sizing: border-box; font-family: inherit;
}
.comments-form textarea:focus {
  outline: none;
  border-color: var(--tracker-accent, #ffc107);
  box-shadow: 0 0 0 3px rgba(255,193,7,0.1);
}
.comment-submit-btn {
  margin-top: 15px; padding: 10px 24px;
  font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, #ffc107, #e6b800);
  color: #000000; border: none; border-radius: 6px;
  cursor: pointer; transition: all 0.2s ease;
}
.comment-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(255,193,7,0.3); }
.comments-rules { text-align: center; margin-bottom: 15px; color: var(--tracker-text, #999999); font-size: 12px; }


/* =============================================================================
   25. BROWSE PAGE & TORRENT TABLE
   ============================================================================= */
.movehere {
  width: 100%;
  max-width: 1150px;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1px 0;
  font-size: 12px;
  background: var(--tracker-bg, #1a1a1a);
  border-radius: 6px;
}

.cat_Head {
  background: linear-gradient(135deg, #3a3a3a, #2d2d2d);
  color: var(--tracker-text-bright, #ffffff);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 8px;
  border-bottom: 2px solid var(--tracker-accent, #ffc107);
  white-space: nowrap;
}
.cat_Head a { color: var(--tracker-text-bright, #ffffff); text-decoration: none; transition: color 0.2s ease; }
.cat_Head a:hover { color: var(--tracker-accent, #ffc107); }
.cat_Head b { font-weight: 600; }

.browse {
  padding: 10px 8px;
  border-bottom: 1px solid var(--tracker-border, #2a2a2a);
  vertical-align: middle;
  transition: background-color 0.15s ease;
  position: relative;
}

.t_label { padding: 0; width: 1%; }
.t_label a { display: inline-block; padding: 4px; transition: transform 0.2s ease; }
.t_label a:hover { transform: scale(1.1); }
.t_label img { vertical-align: middle; }

.t_title { 
	text-align: left;
}

.browse a.b {
  color: var(--tracker-accent, #ffc107);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.browse a.b:hover { color: #ffd54f; text-decoration: underline; }

.browse a.index { display: inline-block; transition: transform 0.2s ease; }
.browse a.index:hover { transform: scale(1.15); }

.tag {
    display: inline-block;
    background: #d36969;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 11px;
    box-shadow: 1px 1px 2px -1px #ff9999 inset;
}
.newtags {
  background: #f00;
  animation: pulse-new 2s ease-in-out infinite;
}
@keyframes pulse-new {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

/* Billboard section container */
.mbrowse-billboard {
  background: var(--tracker-bg, #1a1a1a);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  max-width: 100%;
  box-sizing: border-box;
}
.mbrowse-billboard .st-search { width: 100%; max-width: 100%; box-sizing: border-box; margin: 0; }

.mbrowse-billboard-header {
  background: linear-gradient(135deg, #3a3a3a, #2d2d2d);
  padding: 8px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tracker-border, #2a2a2a);
  transition: background-color 0.2s ease;
  user-select: none;
}
.mbrowse-billboard-header:hover { background: linear-gradient(135deg, #424242, #353535); }
.mbrowse-billboard-header:focus-visible { outline: 2px solid var(--tracker-accent, #ffc107); outline-offset: -2px; }

.mbrowse-billboard-title {
  font-size: 14px;
  color: var(--tracker-text-bright, #ffffff);
  display: flex; align-items: center; gap: 8px;
}
.mbrowse-billboard-title::before {
  content: "▼";
  font-size: 10px;
  transition: transform 0.3s ease;
  color: var(--tracker-text, #999999);
}
.mbrowse-billboard-header[aria-expanded="false"] .mbrowse-billboard-title::before { transform: rotate(-90deg); }

.mbrowse-billboard-subtitle {
  font-size: 12px; color: var(--tracker-text, #999999);
  margin-left: 15px; display: flex; align-items: center; gap: 10px;
}

.mbrowse-billboard-body {
  max-height: 0; overflow: hidden;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease, visibility 0s linear 0.35s;
  padding: 0 20px;
}
.mbrowse-billboard-body.cat-open {
  max-height: 2000px; overflow: visible;
  opacity: 1; pointer-events: auto; visibility: visible;
  padding: 15px 20px;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease, visibility 0s linear 0s;
}

.mbrowse-billboard th,
.mbrowse-billboard td { border: 0; padding: 6px 8px; font-size: 12px; }
.mbrowse-billboard tr:nth-child(even) td    { background-color: #232323; }
.mbrowse-billboard tr:nth-child(even) table { background-color: #222; }
.mbrowse-billboard tr:nth-child(odd) td     { background-color: transparent; }

/* Top-5 cards */
.top5-row-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 0; }
.top5-card {
  position: relative; flex: 0 0 calc(20% - 8px); height: 200px;
  border-radius: 6px; background-size: cover; background-position: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.45); overflow: hidden;
}
.top5-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(0,0,0,0.78), rgba(0,0,0,0.25));
  pointer-events: none;
}
.top5-card-inner { position: absolute; inset: 0; padding: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #f5f5f5; text-align: center; box-sizing: border-box; }
.top5-rank {
  position: absolute; top: 0; left: 0; padding: 4px 10px 6px 6px;
  background: linear-gradient(135deg, #ff9f1c, #ffbf69); color: #000;
  font-size: 10px; font-weight: 700; border-bottom-right-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.top5-rating {
  position: absolute; top: 0; right: 0; padding: 4px 8px 6px 10px;
  background: linear-gradient(225deg, #f5c518, #ffd95a); color: #000;
  font-size: 10px; font-weight: 700; border-bottom-left-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.top5-rating span { font-weight: 700; }
.top5-title {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  padding: 6px 60px 7px 8px; box-sizing: border-box; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
  backdrop-filter: blur(4px);
}
.top5-title a { color: #fff; font-weight: 600; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.25; }
.top5-title a:hover { color: #ffbf69; }
.top5-stats { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 10px; }
.top5-seeders   { color: #6ee76e; }
.top5-leechers  { color: #ff6b6b; }
.top5-empty     { font-size: 12px; color: #bbb; padding: 8px 4px; }


/* =============================================================================
   26. SEARCH CONTROLS (browse page)
   ============================================================================= */
.st-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 20px;
  background: var(--tracker-bg-alt, #222222);
  border-top: 1px solid var(--tracker-border, #2a2a2a);
}

.st-search > div { display: flex; align-items: stretch; }
.st-search > div:first-child input  { border-radius: 5px 0 0 5px; }
.st-search > div:last-child button  { border-radius: 0 5px 5px 0; }
.st-search > .st-search-other       { padding: 0 0 0 1px; opacity: .8; }
.st-search * { box-sizing: border-box; }

.st-search-text    { flex: 1 1 300px; min-width: 200px; }
.st-search-buttons { flex: 0 0 auto; }

.st-search input,
.st-search button {
  width: 100%; height: 42px; min-height: 42px;
  border-radius: 0; font-size: 14px; font-weight: 100;
}

.st-search-text input[type="text"] {
  width: 100%; padding: 10px 15px; font-size: 13px;
  background: var(--tracker-bg, #1a1a1a);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: 4px;
  color: var(--tracker-text-bright, #ffffff);
  transition: all 0.2s ease;
}
.st-search-text input[type="text"]:focus {
  outline: none;
  border-color: var(--tracker-accent, #ffc107);
  box-shadow: 0 0 0 3px rgba(255,193,7,0.1);
}
.st-search-text input[type="text"]::placeholder { color: var(--tracker-text, #666666); }

/* Category filter panel */
#catTypes {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  display: flex; flex-wrap: wrap; gap: 15px; padding: 0 20px;
  background: var(--tracker-bg, #1a1a1a);
}
#catTypes.cat-open { 
	max-height: 2000px; 
	opacity: 1; 
	padding: 20px; 
	flex-wrap: nowrap;
}

.sortCats { flex: 1 1 150px; min-width: 140px; }
.sortCats .label {
  display: block;
  background: linear-gradient(135deg, #3a3a3a, #2d2d2d);
  color: var(--tracker-text-bright, #ffffff);
  font-weight: 600; font-size: 12px;
  padding: 8px 12px; margin-bottom: 10px;
  border-radius: 4px; text-align: center;
  border-left: 3px solid var(--tracker-accent, #ffc107);
  cursor: pointer; transition: all 0.2s ease;
}
.sortCats .label:hover { background: linear-gradient(135deg, #424242, #353535); border-left-width: 5px; }
.catMedia .label { border-left-color: #4fc3f7; }
.catApps .label  { border-left-color: #81c784; }
.catMusic .label { border-left-color: #ff8a65; }

.sortCats div { display: flex; align-items: center; gap: 8px; padding: 4px 0; }

.sortCats input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--tracker-accent, #ffc107);
}
.sortCats input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--tracker-accent, #ffc107); outline-offset: 2px;
}

.catlink { color: var(--tracker-text, #cccccc); text-decoration: none; font-size: 12px; transition: color 0.2s ease; padding: 2px 4px; border-radius: 3px; }
.catlink:hover { color: var(--tracker-accent, #ffc107); background: rgba(255,193,7,0.1); }
.sortCats a[href*="freeleech"]       { color: #4caf50; font-weight: 600; }
.sortCats a[href*="freeleech"]:hover { color: #81c784; }

#sortCatsBtn { text-align: center; padding: 15px; }
#sortCatsBtn button {
  background: transparent;
  border: 1px solid var(--tracker-border, #2a2a2a);
  color: var(--tracker-text, #999999);
  padding: 8px 16px; border-radius: 4px;
  cursor: pointer; font-size: 12px; transition: all 0.2s ease;
}
#sortCatsBtn button:hover { border-color: var(--tracker-accent, #ffc107); color: var(--tracker-accent, #ffc107); }

.forceHidden { display: none !important; }


/* =============================================================================
   27. MODERN BROWSE (mbrowse)
   ============================================================================= */
.mbrowse {
  margin: 20px auto 40px;
  max-width: 1200px;
  color: #f5f5f5;
  font-size: 13px;
  line-height: 1.5;
}

.mbrowse-topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px 10px;
}
.mbrowse-top-center { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

.mbrowse-input {
  background: #1f1f1f; border: 1px solid #444; color: #f5f5f5;
  padding: 8px 12px; border-radius: 4px; min-width: 475px; font-size: 13px;
  line-height: 1.4; box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.mbrowse-input:focus {
  outline: none; border-color: #ff9f1c;
  box-shadow: 0 0 0 1px rgba(255,159,28,0.6); background: #202020;
}

.mbrowse-body { display: flex; flex-direction: column; gap: 15px; }

.mbrowse-sidebar {
  background: #171717; border: 1px solid #333;
  border-radius: 6px; padding: 8px 10px 10px;
}
.mbrowse-sidebar-header {
  font-weight: 700; margin-bottom: 6px; font-size: 13px;
  text-transform: uppercase; color: #ccc;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mbrowse-categories {
  font-size: 12px; display: flex; flex-wrap: wrap;
  align-items: flex-start; justify-content: center; gap: 10px; padding: 2px 0;
}
.mbrowse-cat-group { flex: 1 1 0; min-width: 150px; }
.mbrowse-cat-group-title {
  width: 100%; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px; color: #aaaaaa;
  margin: 4px 0 2px; text-align: center;
}
.mbrowse-cat-item {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin: 2px 0; padding: 3px 9px; border-radius: 999px;
  background: #111; border: 1px solid #333; cursor: pointer; text-align: center;
}
.mbrowse-cat-item input { position: absolute; opacity: 0; pointer-events: none; }
.mbrowse-cat-item span  { font-size: 11px; }
.mbrowse-cat-item-active { background: linear-gradient(135deg, #ff9f1c, #ffb74d); border-color: #ffb74d; color: #000; }
.mbrowse-sidebar-collapsed .mbrowse-categories { display: none; }
.mbrowse-cats-toggle { padding: 2px 10px; font-size: 11px; line-height: 1.3; }

.mbrowse-main { background: #171717; border: 1px solid #333; border-radius: 6px; padding: 10px; }
.mbrowse-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.mbrowse-results-count  { font-size: 13px; color: #ccc; }
.mbrowse-sort           { display: flex; align-items: center; gap: 6px; }
.mbrowse-select {
  background: #1f1f1f; border: 1px solid #444; color: #f5f5f5;
  padding: 5px 8px; border-radius: 4px; font-size: 13px; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.mbrowse-select:focus {
  outline: none; border-color: #ff9f1c;
  box-shadow: 0 0 0 1px rgba(255,159,28,0.6); background: #202020;
}

.mbrowse-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mbrowse-card {
  display: flex; align-items: stretch;
  background: #111; border: 1px solid #333; border-radius: 6px;
  overflow: hidden; font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.45);
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}
.mbrowse-card:hover,
.mbrowse-card:focus-within { background: #151515; box-shadow: 0 4px 14px rgba(0,0,0,0.75); transform: translateY(-1px); }

.mbrowse-card-thumb { flex: 0 0 80px; background: #000; display: flex; align-items: center; justify-content: center; }
.mbrowse-card-thumb img { display: block; width: 80px; height: 110px; object-fit: cover; }
.mbrowse-card-thumb-placeholder { width: 80px; height: 110px; background: linear-gradient(135deg, #263238, #37474f); display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; }
.mbrowse-thumb-text { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #eceff1; }

.mbrowse-card-content { flex: 1 1 auto; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; box-sizing: border-box; line-height: 1.5; }
.mbrowse-card-header  { display: flex; align-items: center; gap: 6px; }
.mbrowse-card-title   { color: #fff; text-decoration: none; font-weight: 600; }
.mbrowse-card-title:hover { color: #ffbf69; }
.mbrowse-imdb-badge   { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 3px; background: #f5c518; color: #000; font-weight: 600; }
.mbrowse-card-meta    { display: flex; flex-wrap: wrap; gap: 4px; }
.mbrowse-card-stats   { display: flex; flex-wrap: wrap; gap: 8px; color: #ccc; }
.mbrowse-card-stats .seed  { color: #6ee76e; }
.mbrowse-card-stats .leech { color: #ff6b6b; }
.mbrowse-card-footer  { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; color: #999; }

.mbadge        { display: inline-block; padding: 2px 6px; border-radius: 999px; font-size: 11px; background: #222; color: #eee; }
.mbadge.free   { background: #0a7b34; color: #fff; }
.mbadge.category {
  background: #ff9f1c; color: #000;
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  border: 1px solid #ffb74d; box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
}
.mbrowse-cat-text { text-transform: uppercase; font-weight: 700; font-size: 11px; letter-spacing: 0.5px; }

.mbrowse-pagination { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.mbrowse-page-info  { font-size: 13px; color: #ccc; }
.mbrowse-empty      { padding: 20px; text-align: center; color: #ccc; }


/* =============================================================================
   28. TOOLTIPS & INFO CARDS
   ============================================================================= */
.cardHov { position: relative; }
.tTipWrap { position: relative; }
.tTip {
  display: none;
  position: absolute;
  background: var(--tracker-bg, #1a1a1a);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: 6px; padding: 10px;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  min-width: 150px; max-width: min(450px, 90vw);
  width: max-content; font-size: 11px;
  color: var(--tracker-text, #cccccc);
  box-sizing: border-box; line-height: 1.5;
}
.tTipWrap:hover .tTip { display: block; }
.tTip.ttop { bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 8px; }
.tTip.ttop::before {
  content: ""; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--tracker-border, #2a2a2a);
}

.iCard {
  background: var(--tracker-bg, #1a1a1a);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: 8px; overflow: visible;
  min-width: 320px; max-width: min(480px, 95vw);
  width: max-content; font-size: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  box-sizing: border-box;
}
.iCard .lCol  { width: 180px; float: left; padding: 15px; text-align: center; }
.iCard .lCol .poster { width: 100%; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.iCard .rCol  { margin-left: 180px; padding: 15px; }
.iCard .rCol .infoHead { text-align: center; border-bottom: 1px solid var(--tracker-border, #2a2a2a); padding-bottom: 10px; margin-bottom: 10px; }
.iCard h1 { color: var(--tracker-text-bright, #ffffff); font-size: 18px; font-weight: 600; margin: 0; }
.iCard h1 span { font-size: 14px; color: var(--tracker-text, #999999); }
.iCard .plot  { padding: 10px 0; line-height: 1.6; color: var(--tracker-text, #cccccc); }
.iCard .cast  { padding: 10px 0; }
.iCard .cast::before { content: "CAST"; display: block; font-size: 11px; font-weight: 600; color: var(--tracker-accent, #ffc107); margin-bottom: 5px; letter-spacing: 1px; }


/* =============================================================================
   29. PAGINATION
   ============================================================================= */
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 15px 0; flex-wrap: wrap;
}
.pager a,
.pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px; font-size: 12px;
  background: var(--tracker-bg-alt, #222222);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: 4px; color: var(--tracker-text, #cccccc);
  text-decoration: none; transition: all 0.2s ease;
}
.pager a:hover {
  background: var(--tracker-accent, #ffc107);
  border-color: var(--tracker-accent, #ffc107);
  color: #000000;
}
.pager span {
  background: var(--tracker-accent, #ffc107);
  border-color: var(--tracker-accent, #ffc107);
  color: #000000; font-weight: 600;
}

/* Legacy .pagination (used in iptv/events) */
.pagination { text-align: center; border-color: #000; padding: 5px 0; }
.pagination a { line-height: 25px; cursor: pointer; margin: 0 5px 0 0; padding: 3px 6px; color: #000; text-decoration: none; }
.pagination a.number  { border: 1px solid #333; }
.pagination a.current { border-color: #000; background: #000; color: #fff; }


/* =============================================================================
   30. BOOKMARKS
   ============================================================================= */
.book {
  cursor: pointer; opacity: 0.4;
  transition: all 0.2s ease;
}
.book:hover { opacity: 0.8; transform: scale(1.2); }
.booked     { opacity: 1 !important; color:yellow; filter: drop-shadow(0 0 4px rgba(255,215,0,0.6)); }


/* =============================================================================
   31. IMDB SECTIONS (legacy table-based, used on torrent detail pages)
   ============================================================================= */
div.imdb-score  { float: left; padding-top: 7px; font-size: 14px; color: #fff; }
div.imdb-rating { height: 30px; float: left; margin-left: 25px; background-image: url(/images/rating.png); background-repeat: no-repeat; }
div.imdb-voters { float: right; width: 150px; height: 20px; padding-right: 25px; padding-top: 8px; }
div.imdb-novotes { float: left; padding-top: 8px; }
.imdb-table .plot    { text-align: justify; }
.imdb-table .trailer { cursor: pointer; display: inline-block; }

.imdb-div {
  background: no-repeat 50% / cover;
  margin-bottom: 8px; position: relative; padding-bottom: 20px;
}
.imdb-div:before {
  content: ""; width: 100%; height: 100%;
  display: block; position: absolute; left: 0; top: 0;
  box-shadow: 0 1px 0 #ffffff1c inset, 0 -1px 0 #ffffff1c inset;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(31 31 31), 20%, rgb(31 31 31 / 74%), 80%, rgb(31 31 31));
  backdrop-filter: blur(5px) saturate(100%);
  z-index: 1;
}

/* Details IMDB card (modern) */
.details-imdb-card {
  background: var(--tracker-bg-alt, #222222);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: 8px; overflow: hidden; margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.details-trailer-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(245,197,24,0.15);
  border: 1px solid var(--tracker-accent, #ffc107);
  border-radius: 4px; color: var(--tracker-accent, #ffc107);
  cursor: pointer; transition: all 0.2s ease;
}
.details-trailer-btn:hover { background: var(--tracker-accent, #ffc107); color: #000000; }
.details-trailer-btn img { width: 24px; height: 24px; }

.details-imdb-mod {
  background: rgba(255,193,7,0.1); border: 1px solid var(--tracker-accent, #ffc107);
  border-radius: 6px; padding: 15px; margin-top: 15px;
}
.details-imdb-mod form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.details-imdb-mod input[type="text"] {
  flex: 1; min-width: 200px; padding: 8px 12px;
  background: var(--tracker-bg, #1a1a1a);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: 4px; color: var(--tracker-text-bright, #ffffff); font-size: 13px;
}


/* =============================================================================
   32. MODERN CARD COMPONENTS
   ============================================================================= */
.modern-section { margin: 15px 0; padding: 0; }

.modern-card {
  background: var(--tracker-bg);
  border: 1px solid var(--tracker-border);
  border-radius: 6px; padding: 15px; margin-bottom: 15px;
  box-shadow: var(--tracker-shadow);
}
.modern-card-header { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--tracker-border); }
.modern-card-title  { font-size: 16px; font-weight: bold; color: var(--tracker-text-bright); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.modern-card-subtitle { font-size: 11px; color: var(--tracker-text); margin: 0; }
.modern-card-body   { color: var(--tracker-text); }

/* Welcome banner */
.welcome-banner {
  background: linear-gradient(135deg, #5f4700, #925804);
  color: white; padding: 10px 15px; border-radius: 6px;
  margin-bottom: 15px; text-align: center; font-size: 13px;
  box-shadow: var(--tracker-shadow);
}
.welcome-banner p    { margin: 0; }
.welcome-banner a    { color: white; text-decoration: underline; font-weight: bold; }
.welcome-banner a:hover { text-decoration: none; }

/* Poll Component */
.modern-poll-container { position: relative; margin-bottom: 15px; min-height: 40px; }
.modern-poll-results   { margin-top: 8px; }
.modern-poll-option    { margin-bottom: 6px; display: flex; align-items: center; }
.modern-poll-option-text {
  font-weight: bold; color: var(--tracker-text-bright);
  margin-bottom: 0; font-size: 11px;
  display: inline-block; margin-right: 8px; min-width: 200px; text-align: left;
}
.modern-poll-option-bar { display: flex; position: relative; background: var(--tracker-bg-alt); border-radius: 3px; height: 12px; overflow: hidden; flex: 1; }
.modern-poll-option-fill { height: 100%; background: linear-gradient(90deg, var(--tracker-accent), #e68900); border-radius: 3px; transition: width 0.3s ease-out; }
.modern-poll-option-percentage { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-weight: bold; color: white; font-size: 9px; text-shadow: 0 0 2px rgba(0,0,0,0.8); display: contents; }
.modern-poll-form      { margin-top: 8px; }
.modern-poll-radio-label {
  display: inline-flex; align-items: center;
  padding: 4px 8px; background: var(--tracker-bg-alt);
  border: 1px solid var(--tracker-border); border-radius: 3px;
  cursor: pointer; transition: all 0.3s ease;
  margin-right: 4px; margin-bottom: 4px; font-size: 10px;
}
.modern-poll-radio-label:hover { background: var(--tracker-bg); border-color: var(--tracker-accent); }
.modern-poll-radio     { margin-right: 6px; width: 12px; height: 12px; accent-color: var(--tracker-accent); }
.modern-poll-vote-btn  { padding: 6px 12px; font-size: 10px; margin-top: 6px; }
.modern-poll-minimize {
  position: absolute !important; top: 16px !important; right: 16px !important;
  background: #fff1; border: none; color: var(--tracker-text);
  cursor: pointer; font-size: 14px; padding: 4px; border-radius: 3px;
  transition: all 0.3s ease; z-index: 1000 !important;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  pointer-events: auto !important;
}
.modern-poll-minimize:hover { background: var(--tracker-bg-alt); color: var(--tracker-accent); }
.modern-poll-container.minimized .modern-poll-card .modern-card-body        { display: none !important; }
.modern-poll-container.minimized .modern-poll-card .modern-card-header      { margin-bottom: 0 !important; padding-bottom: 0 !important; border-bottom: none !important; }
.modern-poll-container.minimized .modern-poll-card .modern-card-subtitle    { display: none !important; }

/* Featured Torrents Grid */
.modern-torrent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 16px; margin-top: 15px;
}
.modern-torrent-card {
  background: var(--tracker-bg); border: 1px solid var(--tracker-border);
  border-radius: 8px; overflow: hidden;
  transition: all 0.3s ease; position: relative; cursor: pointer;
}
.modern-torrent-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.modern-torrent-poster     { width: 100%; height: 240px; object-fit: cover; display: block; }
.modern-torrent-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
  color: white; padding: 15px;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.modern-torrent-card:hover .modern-torrent-overlay { opacity: 1; }
.modern-torrent-info  { color: white; transform: translateY(15px); transition: transform 0.3s ease; }
.modern-torrent-card:hover .modern-torrent-info { transform: translateY(0); }
.modern-torrent-title { font-weight: bold; font-size: 11px; margin-bottom: 4px; line-height: 1.3; }
.modern-torrent-meta  { font-size: 10px; opacity: 0.9; }
.modern-torrent-delete {
  position: absolute; top: 8px; right: 8px;
  background: rgba(220,53,69,0.9); color: white;
  border: none; border-radius: 4px; padding: 4px 8px;
  font-size: 10px; cursor: pointer; opacity: 0; transition: opacity 0.3s ease;
}
.modern-torrent-card:hover .modern-torrent-delete { opacity: 1; }
.modern-torrent-delete:hover { background: #dc3545; }

/* Statistics Grid */
.modern-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-top: 15px;
}
.modern-stat-card {
  background: var(--tracker-bg-alt); border: 1px solid var(--tracker-border);
  border-radius: 4px; padding: 20px; text-align: center; transition: all 0.3s ease;
}
.modern-stat-card:hover { background: var(--tracker-bg); border-color: var(--tracker-accent); transform: translateY(-2px); }
.modern-stat-value { font-size: 24px; font-weight: bold; color: var(--tracker-accent); margin-bottom: 5px; }
.modern-stat-label { font-size: 10px; color: var(--tracker-text); text-transform: uppercase; letter-spacing: 0.5px; }

/* Channel List (IPTV) */
.modern-channel-list { margin-top: 15px; }
.modern-channel-item {
  display: flex; align-items: center; padding: 12px;
  background: var(--tracker-bg-alt); border: 1px solid var(--tracker-border);
  border-radius: 4px; margin-bottom: 8px; transition: all 0.3s ease;
}
.modern-channel-item:hover { background: var(--tracker-bg); border-color: var(--tracker-accent); transform: translateX(4px); }
.modern-channel-name  { flex: 1; font-weight: bold; color: var(--tracker-text-bright); }
.modern-channel-name a { color: inherit; text-decoration: none; }
.modern-channel-name a:hover { color: var(--tracker-accent); }
.modern-channel-icon  { margin-right: 12px; color: var(--tracker-accent); font-size: 16px; }

@keyframes modernFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =============================================================================
   33. UTILITY CLASSES (modern system)
   ============================================================================= */
.modern-text-center { text-align: center; }
.modern-text-left   { text-align: left; }
.modern-text-right  { text-align: right; }
.modern-text-sm     { font-size: 11px; }
.modern-text-lg     { font-size: 14px; }
.modern-text-xl     { font-size: 16px; }
.modern-text-primary   { color: var(--tracker-text-bright); }
.modern-text-secondary { color: var(--tracker-text); }
.modern-text-muted     { color: #999; }
.modern-mt-2 { margin-top: 8px; }
.modern-mt-3 { margin-top: 12px; }
.modern-mt-4 { margin-top: 16px; }
.modern-mb-2 { margin-bottom: 8px; }
.modern-mb-3 { margin-bottom: 12px; }
.modern-mb-4 { margin-bottom: 16px; }
.modern-p-2  { padding: 8px; }
.modern-p-3  { padding: 12px; }
.modern-p-4  { padding: 16px; }
.modern-ml-2 { margin-left: 8px; }
.modern-hidden { display: none; }


/* =============================================================================
   34. BBCODE ELEMENTS (post/description rendering)
   ============================================================================= */
.bbcode-img {
  max-width: 100%; height: auto;
  border-radius: var(--radius-md, 6px);
  display: block; margin: 8px 0;
}
.bbcode-quote {
  margin: 8px 0; padding: 12px;
  border-left: 4px solid var(--tracker-accent, #ffc107);
  background: var(--tracker-bg-dark, #111111);
  border-radius: var(--radius-md, 6px);
}
.bbcode-quote blockquote {
  margin: 0; font-style: italic;
  color: var(--tracker-text, #999999);
}
.bbcode-code {
  margin: 8px 0; padding: 12px;
  background: var(--tracker-bg-dark, #111111);
  border: 1px solid var(--tracker-border, #2a2a2a);
  border-radius: var(--radius-md, 6px);
  overflow-x: auto;
}
.bbcode-code pre {
  margin: 0; font-family: 'Courier New', monospace; font-size: 0.9em;
  color: var(--tracker-text-bright, #ffffff);
  white-space: pre-wrap; word-wrap: break-word;
}


/* =============================================================================
   35. MOVIE CARDS (iptv.php / movies.php)
   ============================================================================= */
.movie {
  overflow: hidden; margin: 10px; background: #2f3238;
  text-align: center; cursor: pointer;
  display: inline-block; width: 210px;
  position: relative; vertical-align: top; min-height: 308px;
}
.movie img { width: 100%; display: block; transition: opacity 1s, transform 1s; backface-visibility: hidden; }
.movie .details {
  text-align: left; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; padding: 10px; color: #fff;
  text-transform: uppercase; font-size: 1.6em; backface-visibility: hidden;
}
.movie p {
  display: inline-block; width: 100%; margin: 0 0 0.25em; padding: 0.4em 1em;
  background: rgba(255,255,255,0.9); color: #2f3238; text-transform: none;
  font-weight: 500; font-size: 85%;
  transition: opacity 0.35s, transform 0.35s;
  transform: translate3d(-360px,0,0);
}
.movie .plot { font-size: 13px; text-align: justify; }
.movie p:first-child     { transition-delay: 0.15s; }
.movie p:nth-of-type(2)  { transition-delay: 0.1s; }
.movie p:nth-of-type(3)  { transition-delay: 0.05s; }
.movie:hover p:first-child    { transition-delay: 0s; }
.movie:hover p:nth-of-type(2) { transition-delay: 0.05s; }
.movie:hover p:nth-of-type(3) { transition-delay: 0.1s; }
.movie:hover p:nth-of-type(4) { transition-delay: 0.15s; }
.movie:hover img { opacity: 0.4; transform: scale3d(1.1,1.1,1); }
.movie:hover p   { opacity: 1; transform: translate3d(0,0,0); }
.movie, .movie * { box-sizing: border-box; }
.movieList { text-align: center; }


/* =============================================================================
   36. PROGRESS METER (ratio bar)
   ============================================================================= */
.meter {
  height: 15px; position: relative; margin: 8px 0 20px;
  background: #1e2832; border-radius: 2px; padding: 2px; text-align: left;
  box-shadow: inset 0 -1px 1px rgba(255,255,255,0.3);
}
.meter > span {
  display: block; height: 100%;
  border-radius: 2px;
  background-color: #297fb9;
  box-shadow: inset 0 2px 9px rgba(255,255,255,0.3), inset 0 -2px 6px rgba(0,0,0,0.4);
  position: relative; overflow: hidden;
}
.meter > span:after,
.animate > span > span { content: ""; position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: 1; overflow: hidden; }
.animate > span:after  { display: none; }

.nostripes > span > span,
.nostripes > span:after { animation: none; background-image: none; }

@keyframes move {
  0%   { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}


/* =============================================================================
   37. DOCK MENU (legacy icon dock)
   ============================================================================= */
.dockWrap { position: relative; width: 800px; height: 100px; }
.dock {
  position: absolute; bottom: 0; z-index: 10;
  width: 100%; text-align: center;
  font: normal 14px/1 "Lucida Grande", Arial, sans-serif;
}
.dock ul { position: relative; display: inline-block; background: url(/pic/menu/dock-m.png) repeat-x bottom; margin: 0; padding: 0 5px; }
.dock ul:before,
.dock ul:after { content: " "; position: absolute; top: 0; bottom: 0; width: 31px; }
.dock ul:before { left: -31px; background: url(/pic/menu/dock-l.png) no-repeat left bottom; }
.dock ul:after  { right: -31px; background: url(/pic/menu/dock-r.png) no-repeat right bottom; }
.dock li { display: inline-block; position: relative; vertical-align: baseline; margin: 0 5px 15px; }
.dock a  { display: inline-block; cursor: default; outline: none; }
.dock li:target a { animation: bounce 0.3s 6 alternate ease-out; }
.dock li:after {
  content: " "; position: absolute;
  bottom: -5px; left: 50%; margin-left: -2px;
  width: 5px; height: 5px; opacity: 0; visibility: hidden;
  background-color: rgba(255,255,255,0.8);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 0 #ffffff1c, 0 0 4px rgba(75,255,255,0.5), 0 -1px 7px #4bffff;
  transition: opacity 0.5s;
}
.dock li:target:after { visibility: visible; opacity: 1; }
.dock em {
  position: absolute; top: -34px; left: 50%; opacity: 0.5;
  width: 150px; margin-left: -75px; text-align: center;
}
.dock em:after {
  content: " "; position: absolute;
  bottom: -6px; left: 50%; margin-left: -6px;
  width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 6px solid rgba(0,0,0,0.6); border-bottom: none;
}
.dock em span {
  display: inline-block; font-size: 12px; font-style: normal;
  color: #fff; background: rgba(0,0,0,0.6);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.9);
  border-radius: 12px; padding: 5px 12px;
}
.dock li:hover em, .dock li a:focus em { opacity: 1; }
.dock img { width: 54px; height: auto; border: none; transition: width 0.2s, height 0.2s; }
.dock li:hover img, .dock li a:focus img { width: 64px; }
.dock li:active img { opacity: 0.9; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}


/* =============================================================================
   38. FLOATING ELEMENTS (game banner, staff panel, etc.)
   ============================================================================= */
.game {
  z-index: 100; left: 0; position: fixed; top: 45%; display: block;
}
.game:hover { left: -1px; }

.tvg {
  z-index: 100; right: 0; position: fixed; top: 45%; display: block;
}
.toper {
  z-index: 50; right: 1%; position: fixed; top: 96%; display: block;
}

/* staff-pan hidden by default in modern theme */
.staff-pan { display: none !important; }
.staff-f   { margin: 4px; }

.game img, .tvg .toper img, .staff-pan img { border: none !important; }

.scrollToTop {
  border: none; width: 30px; height: 40px; padding: 5px;
  text-align: center; font-weight: 700; color: #444; text-decoration: none;
  position: fixed; top: 93%; right: 1%; display: none; z-index: 999;
}
.scrollToTop::before {
  content: ""; display: block;
  width: 0; height: 0;
  border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-bottom: 16px solid #ffffff; margin: 0 auto 2px;
}

.Csscolors { display: block; position: fixed; right: 5px; top: 5%; width: 20px; }
.Csscolors a { display: block; height: 20px; width: 20px; margin-top: 3px; }

#pop { background: #333 !important; color: #fff !important; }


/* =============================================================================
   39. FORMS (misc wrappers)
   ============================================================================= */
.cf:before, .cf:after { content: ""; display: table; }
.cf:after { clear: both; }
.cf { zoom: 1; }

.form-wrapper {
  width: 750px; padding: 15px; margin: 10px auto;
  background: rgba(0,0,0,.2); border-radius: 10px;
  box-shadow: 0 1px 1px rgba(0,0,0,.4) inset, 0 1px 0 rgba(255,255,255,.2);
}
.form-wrapper input {
  width: 630px; height: 20px; padding: 10px 5px; float: left;
  font: bold 15px Tahoma; border: 0 !important; background: #000;
  border-radius: 3px 0 0 3px;
}
.form-wrapper input:focus { outline: 0; background: #000; box-shadow: 0 0 2px rgba(0,0,0,.8) inset; }
.form-wrapper input::placeholder { color: #999; font-weight: 400; font-style: italic; }
.form-wrapper button {
  overflow: visible; position: relative; float: right;
  border: none; cursor: pointer; padding: 3px 23px; border-radius: 4px;
  font-weight: 600; font-size: 13px; line-height: 1.4;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}
.form-wrapper button:hover  { background: #ffb74d; box-shadow: 0 0 0 1px rgba(0,0,0,.4); transform: translateY(-1px); }
.form-wrapper button:active { background: #2fc441; transform: translateY(1px); }

.uiInline {
  width: 100%; margin: 10px auto;
}
.uiInline input,
.uiInline select,
.uiInline button {
  appearance: none; color: #000; font-size: 16px;
  border: 1px solid #000; border-width: 1px 0 1px 1px;
  border-radius: 0 5px 5px 0; box-sizing: border-box;
  height: 40px; padding: 5px 10px; width: 10%; vertical-align: top;
}
.uiInline input:first-child { width: 75%; border-radius: 5px 0 0 5px; background: #eee; }
.uiInline select { width: 15%; background: #eee; border-radius: 0; }
.uiInline input[type="submit"],
.uiInline button { cursor: pointer; }

.slt { width: 100%; display: inline-block; padding: 0; margin: 10px auto 20px; text-align: left; }
.slt li {
  display: inline-block; border: 1px solid #000; border-top-color: #333;
  border-radius: 6px; padding: 10px 5px; cursor: pointer;
  margin: 0 5px 5px 0; width: 160px; position: relative;
  box-sizing: border-box; text-align: center;
  user-select: none;
}
.slt li:hover  { background-color: rgba(63,63,63,0.08); }
.slt li:active { border-top-color: #000; box-shadow: 0 0 3px #000 inset; }
.slt li.new    { background-color: #f9452d; color: #fff; }
.slt li.more:hover { background-color: #fa715f; }
.slt li.sltd   { background-color: #347DFB !important; border-color: #4DB0F9; color: #fff; }
.slt b         { font-weight: 400; }
.slt .Menu     { width: 100%; margin-top: -3px; }
.slt .Menu > div { display: block; padding: 10px; font-size: 13px; border-bottom: 1px solid #000; }
.slt .Menu > div:hover { background: rgba(108,108,108,0.5); }
.slt .Menu > div:last-child { border-bottom: 0; }
.slt .Menu:after { width: 100%; content: ''; display: block; position: absolute; top: -10px; height: 20px; left: 0; }

.subTitle.st-search { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; width: 100%; box-sizing: border-box; }


/* =============================================================================
   40. MARKITUP BBCODE EDITOR (dark theme)
   ============================================================================= */
.markItUpContainer    { background: #333 !important; border: 1px solid #555 !important; color: #e0e0e0 !important; }
.markItUpEditor       { background: #333 !important; color: #e0e0e0 !important; border: none !important; }
.markItUpPreviewFrame { background: #333 !important; border: 1px solid #555 !important; color: #e0e0e0 !important; }
.markItUpHeader ul li a { color: #e0e0e0 !important; }
.markItUpHeader ul li a:hover { background: #444 !important; }
.markItUpHeader ul ul { background: #444 !important; border: 1px solid #555 !important; }
.markItUpHeader ul ul li { border-bottom: 1px solid #555 !important; }
.markItUpHeader ul ul li a { color: #e0e0e0 !important; }
.markItUpHeader ul ul li a:hover { background: #555 !important; }


/* =============================================================================
   41. JQUERY UI (dark overrides)
   Single consolidated block — duplicate removed.
   ============================================================================= */
.ui-widget-header {
  border: 1px solid #aaaaaa;
  background: #373737;
  color: #222222;
  font-weight: bold;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}

.ui-state-default,
.ui-widget-content .ui-state-default {
  border: 1px solid #333;
  background: #333;
  font-weight: normal;
  color: #ffffff;
  border-radius: 2px;
  outline: none;
}
.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited { color: #ffffff; text-decoration: none; outline: none; border-radius: 2px; }

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus { background: #373737; border-radius: 2px; font-weight: normal; color: #fff; outline: none; }
.ui-state-hover a,
.ui-state-hover a:hover { color: #fff; text-decoration: none; outline: none; border-radius: 2px; }

.ui-state-active,
.ui-widget-content .ui-state-active { border: 0; background: #ffffff; font-weight: normal; color: #fff; outline: none; border-radius: 2px; }
.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited { color: #fff; outline: none; text-decoration: none; }

.ui-state-highlight,
.ui-widget-content .ui-state-highlight { border: 1px solid #fcefa1; background: #fbf9ee; color: #363636; }
.ui-state-highlight a,
.ui-widget-content .ui-state-highlight a { color: #363636; }

.ui-state-error,
.ui-widget-content .ui-state-error { border: 1px solid #cd0a0a; background: #fef1ec; color: #cd0a0a; }
.ui-state-error a,
.ui-widget-content .ui-state-error a { color: #cd0a0a; }
.ui-state-error-text,
.ui-widget-content .ui-state-error-text { color: #cd0a0a; }

.ui-state-disabled,
.ui-widget-content .ui-state-disabled { opacity: .35; filter: Alpha(Opacity=35); background-image: none; }
.ui-state-disabled { cursor: default !important; }

.ui-priority-primary,
.ui-widget-content .ui-priority-primary { font-weight: bold; }
.ui-priority-secondary,
.ui-widget-content .ui-priority-secondary { opacity: .7; filter: Alpha(Opacity=70); font-weight: normal; }

/* Corner helpers */
.ui-corner-tl  { border-top-left-radius: 4px; }
.ui-corner-tr  { border-top-right-radius: 4px; }
.ui-corner-bl  { border-bottom-left-radius: 4px; }
.ui-corner-br  { border-bottom-right-radius: 4px; }

.ui-corner-top,
.ui-corner-all { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.ui-corner-bottom { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.ui-corner-right  { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.ui-corner-left   { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }

.ui-widget-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: #aaaaaa; opacity: .3; filter: Alpha(Opacity=30);
}
.ui-widget-shadow {
  margin: -8px 0 0 -8px; padding: 8px;
  background: #aaaaaa; opacity: .3; filter: Alpha(Opacity=30);
  border-radius: 8px;
}

/* Helper utilities */
.ui-helper-hidden             { display: none; }
.ui-helper-hidden-accessible  { position: absolute; left: -99999999px; }
.ui-helper-reset              { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
.ui-helper-clearfix:after     { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.ui-helper-clearfix           { display: block; }
* html .ui-helper-clearfix    { height: 1%; }
.ui-helper-zfix               { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter: Alpha(Opacity=0); }
.ui-icon                      { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }

/* Tabs */
.ui-tabs { padding: 0; zoom: 1; border: solid 0; }
.ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: .2em 28px 0; }
.ui-tabs .ui-tabs-nav li { position: relative; float: right; border-bottom-width: 0 !important; margin: 0 2px 0 0; padding: 0; }
.ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: .5em 1em; }
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; background: #333; }
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
.ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
.ui-tabs .ui-tabs-nav li a,
.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; }
.ui-tabs .ui-tabs-hide { display: none !important; }


/* =============================================================================
   42. REGISTRATION GRAPH
   ============================================================================= */
.modern-registration-graph-container {
  background: #1a1a1a; border: 1px solid #444; border-radius: 8px;
  padding: 20px; margin-top: 20px;
}
.modern-registration-graph-container h3 {
  color: #ffffff !important; margin: 0 0 15px; font-size: 14px; font-weight: 600;
}
.modern-registration-graph-container h3 i { color: #ffc107; margin-right: 8px; }
#registration-graph { background: transparent !important; border-radius: 4px; }


/* =============================================================================
   43. STAFF DASHBOARD
   ============================================================================= */
.dashboard-container {
  max-width: 1400px; margin: 0 auto; padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.dashboard-section {
  background: #1a1a1a !important; border: 1px solid #333333 !important;
  border-radius: 12px !important; padding: 24px !important; margin-bottom: 24px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4) !important;
}
.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid #333333 !important;
}
.section-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px;
}
.section-title { font-size: 1.25rem; font-weight: 600; color: #ffffff !important; margin: 0; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tool-card {
  background: #2a2a2a !important; border: 1px solid #333333 !important; border-radius: 8px !important;
  text-align: center; text-decoration: none; color: inherit;
  transition: all 0.2s ease; position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  opacity: 0; transition: opacity 0.2s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); color: white; text-decoration: none; }
.tool-card:hover::before { opacity: 1; }
.tool-card:hover .tool-icon,
.tool-card:hover .tool-name { position: relative; z-index: 1; }
.tool-icon { font-size: 1.5rem; margin-bottom: 12px; color: #3b82f6; transition: color 0.2s ease; position: relative; z-index: 1; }
.tool-name { font-size: 0.875rem; font-weight: 600; color: #ffffff !important; transition: color 0.2s ease; position: relative; z-index: 1; }

.staff-grid,
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.staff-card,
.support-card {
  background: #2a2a2a !important; border: 1px solid #333333 !important; border-radius: 8px !important;
  transition: all 0.2s ease;
}
.staff-card:hover,
.support-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

.staff-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.staff-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; font-size: 0.9rem; overflow: hidden;
}
.staff-info  { flex: 1; }
.staff-name  { font-weight: 600; font-size: 1rem; color: #ffffff !important; margin: 0 0 4px; text-decoration: none; display: block; }
.staff-name:hover { color: #3b82f6 !important; text-decoration: none; }
.staff-role  { font-size: 0.875rem; color: #cccccc !important; margin: 0; }

.staff-status { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.status-dot   { width: 6px; height: 6px; border-radius: 50%; position: relative; }
.status-dot.online  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }
.status-dot.offline { background: #666666 !important; }
.status-dot.online::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  background: #22c55e; opacity: 0.3; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.3; }
  50%  { transform: scale(1.3); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0.3; }
}
.status-text { font-size: 0.875rem; color: #cccccc !important; }

.staff-actions { display: flex; gap: 6px; margin-top: 12px; }
.action-btn {
  border-radius: 6px; border: 1px solid #333333 !important;
  background: #1a1a1a !important; color: #ffffff !important;
  text-decoration: none; font-size: 0.875rem; transition: all 0.2s ease; text-align: center;
}
.action-btn:hover { background: #3b82f6 !important; color: white; text-decoration: none; transform: translateY(-1px); }

.search-form   { background: #2a2a2a !important; border: 1px solid #333333 !important; border-radius: 8px !important; padding: 16px; }
.search-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.form-group    { display: flex; flex-direction: column; gap: 6px; }
.form-label    { font-weight: 600; margin-bottom: 6px; color: #ffffff !important; font-size: 0.875rem; }
.form-input,
.form-select {
  padding: 10px 12px; border: 1px solid #333333 !important; border-radius: 6px;
  background: #1a1a1a !important; color: #ffffff !important; font-size: 0.875rem;
  transition: all 0.2s ease;
}
.form-input:focus,
.form-select:focus { outline: none; border-color: #3b82f6 !important; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

.search-actions { display: flex; gap: 12px; justify-content: center; }

.dashboard-container .btn {
  padding: 10px 16px; border-radius: 6px; border: none;
  font-weight: 600; cursor: pointer; transition: all 0.2s ease;
  font-size: 0.875rem; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-align: center; min-width: fit-content; white-space: nowrap;
}
.dashboard-container .btn-primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.dashboard-container .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.dashboard-container .btn-secondary { background: #2a2a2a !important; color: #ffffff !important; border: 1px solid #333333 !important; }
.dashboard-container .btn-secondary:hover { background: #333333 !important; }

.support-topics { font-size: 0.875rem; color: #cccccc !important; margin: 8px 0; }

.dashboard-container a       { text-decoration: none !important; }
.dashboard-container a:hover { text-decoration: none !important; }

.dashboard-container table { margin: 0 !important; font-size: 0.85rem !important; }
.dashboard-container th {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: white !important; font-weight: 600 !important;
  text-align: left !important; padding: 12px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.dashboard-container td {
  padding: 12px !important;
  border-bottom: 1px solid #333333 !important;
  vertical-align: middle !important;
}

.action-dropdown button:hover { background: #2563eb !important; }
.action-dropdown a {
  display: block !important; padding: 8px 12px !important;
  color: #ffffff !important; text-decoration: none !important;
  font-size: 0.8rem !important; transition: background-color 0.2s !important;
}
.action-dropdown a:hover { background-color: #2a2a2a !important; }


/* =============================================================================
   44. RESPONSIVE OVERRIDES
   ============================================================================= */
@media (max-width: 1024px) {
  .st-nav-link { font-size: 11px; letter-spacing: 0.4px; }
}

@media (max-width: 900px) {
  .mbrowse-input { min-width: 180px; }
}

@media (max-width: 768px) {
  /* Navigation */
  .st-nav-wrapper  { margin: 5px 0; border-radius: 0; position: static; }
  .st-nav-menu     { overflow-x: auto; height: auto; }
  .st-nav-item     { flex: 0 0 auto; min-width: 130px; }
  .st-nav-link     { padding: 15px 10px; }

  /* Status bar */
  .st-status-container { height: auto; padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .st-status-actions   { flex-wrap: wrap; }
  .st-status-right     { width: 100%; justify-content: space-between; }

  /* Banner */
  #scx-banner-deck.scx-banner-deck { width: 100%; }

  /* Browse */
  .movehere  { font-size: 11px; }
  .cat_Head  { padding: 8px 4px; font-size: 10px; }
  .browse    { padding: 8px 4px; }
  .st-search { flex-direction: column; align-items: stretch; }
  .st-search-text, .st-search-buttons, .st-search-other { width: 100%; }
  .st-button, .st-button-large { width: 100%; }
  #catTypes  { flex-direction: column; gap: 10px; }
  .sortCats  { flex: 1 1 auto; }
  .mbrowse-billboard-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mbrowse-billboard-subtitle { margin-left: 0; }

  /* Dashboard */
  .dashboard-container { padding: 16px; }
  .tools-grid          { grid-template-columns: 1fr; }
  .staff-grid, .support-grid, .search-grid { grid-template-columns: 1fr; }
  .search-actions      { flex-direction: column; }
  .dashboard-container .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .details-meta-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   FORUM SECTION BLOCKS
   Replaces .mbrowse-billboard for forums.php only.
   Add these rules to your main stylesheet (style.css).
   ============================================================ */

/* Outer wrapper — one block per forum category / search / unread */
div.forum-section {
    width: 100%;
    margin-bottom: 14px;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    overflow: hidden;
    background-color: #2b2b2b;
}

/* Header bar — always visible, no toggle behaviour */
div.forum-section-header {
    background-color: #333333;
    border-bottom: 1px solid #3a3a3a;
    padding: 8px 12px;
}

/* Title text inside the header */
div.forum-section-title {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

/* Body — always open, no display:none, no JS needed */
div.forum-section-body {
    display: block;
    padding: 0;
    background-color: #2b2b2b;
}

/* Inner table fills the full body width */
div.forum-section-body table.desc-table {
    width: 100%;
    margin: 0;
    border: none;
}

.forum-table {
  background: none;
  border: 1px solid var(--tracker-border);
  table-layout: fixed;
}

.forum-table td {
  background: none;
  border-width: 0 0 1px;
  border-color: var(--tracker-border);
}
.forum-table .colhead{
  background-color: #000 !important;
  border: 0;
}
.forum-table .forum-col {
  overflow: hidden;
  text-overflow: ellipsis;
}
.forum-table .forum-col:first-child {
  width: 60%;
}
.forum-table .forum-col:nth-child(2) {
  width: 5%;
}
.forum-table .forum-col:nth-child(3) {
  width: 5%;
}
.forum-table .forum-col:last-child {
  width: 30%;
}
.forum-table .section-table {
  background: none;
}

/* ============================================================
   END FORUM SECTION BLOCKS
   ============================================================ */

/* =============================================================================
   45. SEARCH ENHANCEMENTS - Autocomplete & Filters
   ============================================================================= */

/* Autocomplete Dropdown */
.st-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tracker-bg, #1a1a1a);
    border: 1px solid var(--tracker-border, #2a2a2a);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.st-search-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.st-search-suggestions li {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--tracker-text, #cccccc);
    border-bottom: 1px solid var(--tracker-border, #2a2a2a);
    transition: background-color 0.15s ease;
}

.st-search-suggestions li:last-child {
    border-bottom: none;
}

.st-search-suggestions li:hover,
.st-search-suggestions li.st-suggestion-selected {
    background: var(--tracker-bg-alt, #222222);
    color: var(--tracker-text-bright, #ffffff);
}

.st-suggestion-icon {
    font-size: 14px;
    opacity: 0.7;
}

.st-suggestion-history {
    color: var(--tracker-accent, #ffc107);
}

.st-suggestion-trending {
    color: var(--tracker-text, #cccccc);
    font-weight: 500;
}

.st-trend-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: var(--tracker-accent, #ffc107);
    color: var(--tracker-bg, #1a1a1a);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
}

.st-trend-count {
    color: var(--tracker-text-dim, #888888);
    font-size: 11px;
    font-weight: normal;
    margin-left: 4px;
}

.st-suggestion-match {
    color: var(--tracker-text, #cccccc);
}

.st-suggestion-text {
    flex: 1;
}

/* Filter Section */
#filterTypes {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    background: var(--tracker-bg, #1a1a1a);
}

#filterTypes.cat-open {
    max-height: 500px;
    opacity: 1;
    padding: 20px;
}

.st-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.st-filter-group {
    flex: 1 1 200px;
    min-width: 180px;
}

.st-filter-group label {
    display: block;
    font-size: 12px;
    color: var(--tracker-text, #999999);
    margin-bottom: 6px;
    font-weight: 500;
}

.st-filter-group input[type="text"],
.st-filter-group input[type="number"],
.st-filter-group select {
    width: 95%;
    padding: 8px 12px;
    font-size: 13px;
    background: var(--tracker-bg-alt, #222222);
    border: 1px solid var(--tracker-border, #2a2a2a);
    border-radius: 4px;
    color: var(--tracker-text-bright, #ffffff);
    transition: border-color 0.2s ease;
}

.st-filter-group input:focus,
.st-filter-group select:focus {
    outline: none;
    border-color: var(--tracker-accent, #ffc107);
    box-shadow: 0 0 0 3px rgba(255,193,7,0.1);
}

.st-filter-year-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.st-filter-year-inputs input {
    flex: 1;
}

.st-filter-year-inputs span {
    color: var(--tracker-text, #999999);
    font-size: 12px;
}

/* Sort Dropdown in Search Bar */
.st-search-sort {
    flex: 0 0 auto;
}

.st-search-sort select {
    padding: 10px 12px;
    font-size: 13px;
    background: var(--tracker-bg-alt, #222222);
    border: 1px solid var(--tracker-border, #2a2a2a);
    border-radius: 4px;
    color: var(--tracker-text-bright, #ffffff);
    cursor: pointer;
    min-width: 140px;
}

.st-search-sort select:focus {
    outline: none;
    border-color: var(--tracker-accent, #ffc107);
}

/* TMDB Movie/TV Grid Styles */
.modern-movie-grid, .modern-tv-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #444 #222;
    max-width: 1115px;
    min-width: 140px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}

/* Webkit scrollbar styling for dark theme */
.modern-movie-grid::-webkit-scrollbar,
.modern-tv-grid::-webkit-scrollbar {
    height: 6px;
}

.modern-movie-grid::-webkit-scrollbar-track,
.modern-tv-grid::-webkit-scrollbar-track {
    background: #222;
    border-radius: 3px;
}

.modern-movie-grid::-webkit-scrollbar-thumb,
.modern-tv-grid::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.modern-movie-grid::-webkit-scrollbar-thumb:hover,
.modern-tv-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Movie/TV Cards */
.modern-movie-card, .modern-tv-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--tracker-bg-alt, #1a1a1a);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.modern-movie-card:hover, .modern-tv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Poster Container */
.modern-poster-container {
    position: relative;
    width: 150px;
    height: 225px;
    overflow: hidden;
    border-radius: 8px;
    background: #2a2a2a;
}

.modern-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1rem 0.5rem 0.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-poster-container:hover .modern-poster-overlay {
    opacity: 1;
}

.modern-poster-container:hover .modern-poster {
    transform: scale(1.05);
}

.modern-poster-info {
    text-align: center;
}

.modern-poster-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    color: #ffffff;
}

.modern-poster-meta {
    font-size: 0.75rem;
    opacity: 0.9;
    color: #cccccc;
}

/* Loading Spinner */
.modern-loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.modern-loading-spinner i {
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}