/* ######### Start Main Tracker Body ######### */
body {
    font-family: tahoma, arial, helvetica, sans-serif;
    font-size: 8pt;
    background: #A1BFD9;#FAFCFE;
    margin: 10px 12px 20px 5px;
    padding: 0;
}

.highlight {
  background: #F8F81A;
  color: #FF0000;
}

.btn{
  background: #DFE6EF;
  border: 1px solid #4C77B6;
  color: #000;
  font-family: Verdana, Helvetica, Sans-Serif;
  font-size: 8pt;
  padding: 2px;
  vertical-align: middle;
  cursor: pointer;

}
/* A quote, perhaps from another post. */
.quote
{
    color: #000;
    background-color: #D7DAEC;
    border-style: inset;
    border-width: 1px solid;
    border-color: #000;
    margin: 1px;
    padding: 1px;
    font-size: x-small;
    line-height: 1.4em;
		overflow:auto;
}

/* A code block - maybe even PHP ;). */
.code
{
    color: #000;
    background-color: #ECECEC;
    font-family: "courier new", "times new roman", monospace;
    font-size: x-small;
    line-height: 1.3em;
    /* Put a nice border around it. */
    border-style: inset;
    border-width: 1px solid;
    border-color: #000;
    margin: 1px auto 1px auto;
    padding: 1px;
    width: 99%;
    /* Wrap its contents, and show scrollbars. */
    overflow: auto;
    /*Stop after about 24 lines, and just show a scrollbar.*/ 
    max-height: 10em;
}
.post{
  border:1px solid #4E7FCD;
  background-color: #E8EFF7;
  padding:0px;
  margin:1px;
  color:#000000;
  line-height: 1.4em;
  text-align:left;
  overflow: auto;
}

img {
  border:0px;
}

textarea {
    display:block;
    overflow: auto;
    line-height: 1.4em;
}

select.drop_pager {
  background-color: #E0E1E8;
  font-size: 11px;

}

.pager {
  background-color: #E0E1E8;
 /* border: 1px solid #072A66;*/
  padding: 1px 3px 1px 3px;
}

.pagercurrent {
  background-color: #7FBDFA;
  border: 1px solid #072A66;
  padding: 1px 3px 1px 3px;
}

.pager a:link,
.pager a:visited,
.pagercurrent a:link,
.pagercurrent a:visited {
    text-decoration:none;
}

.pager a:hover,
.pagercurrent a:hover {
    text-decoration:none;
}
/* this is new for the mainmenu_block*/
.tcat {
  background: url(images/titlebg2.jpg) #b7c5d2 repeat-x;
	height:25px;
}
/* this is new  for the login/logout */
.t_cat, .t_cat a:link, .t_cat_alink
{
	background-color:#7796b3;
	height:20px;
	color: #000;
	text-decoration: none;
}
.t_cat a:visited, .t_cat_avisited
{
	height:20px;
	color: #000;
	text-decoration: none;
}
.t_cat a:hover, .t_cat a:active, .t_cat_ahover
{
	color: #888;
}

/* this is bg for the usermenu links */
.t_cat2
{
	background-image: url(images/tcat2.png);
	height:30px;	
}

/* css for dropdown menu */
#menu {width:auto; height:0px; background:transparent; text-align:right; margin:0 auto;}
/* Donot change the values of this menu */
#menu ul {margin:0; padding:0; list-style:none; white-space:nowrap; text-align:left; background:#71a6cf;}
#menu ul {display:inline-block;} 

#menu li {margin:0; padding:0; list-style:none;}
#menu li {display:inline-block; display:inline;}
#menu ul ul {position:absolute; left:-9999px; width:auto;}

#menu ul.level1 {margin:3px auto;}
#menu ul.level1 li.level1-li {float:left; display:block; position:relative;}

#menu b {position:absolute;} /* -- for IE6 non-flyout dropdowns to stop flickering - who knows why --*/

#menu a {display:block; font:normal 11px verdana,arial,sans-serif; color:#01223b; line-height:26px; text-decoration:none; padding:0 20px;}
#menu ul.level1 li.level1-li a.level1-a {float:left;}

#menu ul li:hover > ul {visibility:visible; left:0; top:24px;}
#menu ul ul li:hover > ul {visibility:visible; left:100%; top:auto; margin-top:-25px; margin-left:-4px;}
#menu li.left:hover > ul {visibility:visible; left:auto; right:0; top:25px;}
#menu li.left ul li:hover > ul {visibility:visible; left:auto; right:100%; top:auto; margin-top:-25px; margin-right:-4px;}

#menu a:hover ul {left:0; top:25px;}
#menu li.left a:hover ul {left:auto; right:-1px; top:25px;}

#menu li.left ul a {text-align:left;}

#menu a:hover a:hover ul, 
#menu a:hover a:hover a:hover ul {left:100%; visibility:visible;}
#menu li.left a:hover a:hover ul, 
#menu li.left a:hover a:hover a:hover ul {left:auto; right:0; visibility:visible;}

#menu a:hover ul ul, 
#menu a:hover a:hover ul ul {left:-9999px;}
#menu li.left a:hover ul ul, 
#menu li.left a:hover a:hover ul ul {left:-9999px;}

#menu li a.drop {background:transparent url(images/white-down.gif) no-repeat right center;}
#menu li a.fly {background:transparent url(images/white-right.gif) no-repeat right center;}
#menu li.left ul a.fly {background:transparent url(images/white-left.gif) no-repeat left center;}

#menu li a:hover,
#menu li a.fly:hover {color:#fff; background-color:#71a6cf; border-top:1px solid #fff; border-bottom:1px solid #A1BFD9;} 
#menu li:hover > a,
#menu ul li:hover > a.fly {color:#fff; background-color:#71a6cf; border-top:1px solid #fff; border-bottom:1px solid #A1BFD9;}

#menu table {position:absolute; height:0; width:0; left:0; border-collapse:collapse; margin-top:-6px;}
#menu table table {position:absolute; left:99%; height:0; width:0; border-collapse:collapse; margin-top:-30px; margin-left:-4px;}

#menu li.left table {position:absolute; height:0; width:0; left:auto; right:0; border-collapse:collapse; margin-top:-4px;}
#menu li.left table table {position:absolute; left:auto; right:100%; height:0; width:0; border-collapse:collapse; margin-top:-30px; margin-right:-4px;}
/* end menu */
/* start side blocks*/
#bodyarea #col .b-content a:link,
#bodyarea #col .b-content a:active,
#bodyarea #col .b-content a:visited {
	color: #242424;
}
#bodyarea #col .b-content a:hover {
	color: #e34313;
}

#bodyarea #col .block-head {
	width: 100%; 
}

#bodyarea #col .block-head-title {
	background-image: url(images/catbg_01.jpg);
	background-repeat: repeat-x;
	background-position: top;
	height: 25px;
	width: auto;
	padding: 0px;
	margin: 0px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 8pt;
	line-height: 12px;
	font-weight: normal;
	color: #fff;
	text-decoration:none;
	text-align:center;
	display: block;
}

#bodyarea #col .block-content {
	margin: 0px;
	padding: 0px;
	width: 100%;
	display: block;
}

#bodyarea #col .b-content {
	width: auto;
	margin: 0px;
	padding: 0px 2px 5px 2px;
	background-color:#B7C5D2;
	text-align: left;
	display: block;
	overflow: hidden;
}
#bodyarea #col .block .header {
	border-collapse: collapse;
	border:0px;
	background-image: url(images/cat-bg.jpg);
	background-repeat: repeat-x;
	background-position: top;
	line-height: 13px;
	height: 27px;
	font-size: 10px;
	color: #355d80;
	font-weight:bold;
}
#bodyarea #col .block .lista {
    background:#B7C5D2;
    color : #000;
    padding:0px;
    margin:0px;
    font-size: 8pt;
    text-align:left;
}
/* end side blocks */
/* start main content blocks*/
#bodyarea #mcol .block-head {
	width: 100%;
}

#bodyarea #mcol .block-head-title {
	height: 25px;
  width: auto;
	padding: 0px 0px 0px 10px;
	margin: 0px;	
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 8pt;
	line-height: 20px;
	font-weight: normal;
	color: #010101;
	background-image: url(images/titlebg2.jpg);
	text-align: left;
	display: block;
	overflow: hidden;
}

#bodyarea #mcol .block-content {
	margin: 0px;
	padding: 0px;
	width: 100%;
	display: block;
}

#bodyarea #mcol .b-content {
	width: auto;
	margin: 0px;
	padding: 0px 0px 5px 0px;
	background-color: #b7c5d2;
	text-align: left;
	display: block;
	overflow: hidden;
}

/* end main content */
/* main header blocks */
#header .block {
	display: block;
	width: auto;
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
	padding: 0px;
}
#header .block-head {
	width: auto;
	height: 8px;
}
#header .block-head-l {
	background-image: url(images/header/h-btl.png);
	background-repeat: no-repeat;
	background-position: left top;
	float: left;
	height: 8px;
	width: 8px;
	margin: 0px;
	padding: 0px;
}
#header .block-head-r {
	background-image: url(images/header/h-btr.png);
	background-repeat: no-repeat;
	background-position: right top;
	margin: 0px;
	padding: 0px;
	float: right;
	height: 8px;
	width: 8px;
}
#header .block-head-title {
	padding: 0px;
	height: 8px;
	width: auto;
	margin: 0px 8px 0px 8px;
	background-image: url(images/header/h-btm.png);
	background-repeat: repeat-x;
	background-position: top;
}
#header .block-content {
	margin: 0px;
	padding: 0px;
	width: auto;
	display: block;
}
#header .block-content-l {
	background-image: url(images/header/h-bml.png);
	background-repeat: repeat-y;
	background-position: left;
	margin: 0px;
	width: auto;
	padding: 0px;
	display: block;
}
#header .block-content-r {
	background-image: url(images/header/h-bmr.png);
	background-repeat: repeat-y;
	background-position: right;
	margin: 0px;
	padding: 0px;
	width: auto;
	display: block;
}
#header .b-content {
	width: auto;
	margin: 0px 4px 0px 4px;
	padding: 5px 10px 8px 10px;
	background-color: #ABBED5;
	background-image: url(images/header/h-bmm.png);
	background-repeat: repeat-x;
	background-position: bottom;
	display: block;
}
#header .lista {
  background:transparent;
	border-collapse: collapse;
	border:0px;
  color : #000;
  padding:0px;
  margin:0px;
  font-size: 8pt;
  text-align:left;
}
#header .block-foot {
	margin: 0px;
	padding: 0px;
	width: auto;
	height: 8px;
}
#header .block-foot-l {
	background-image: url(images/header/h-bbl.png);
	background-repeat: no-repeat;
	background-position: left top;
	margin: 0px;
	padding: 0px;
	float: left;
	height: 8px;
	width: 8px;
	font-size: 1px;
}
#header .block-foot-r {
	background-image: url(images/header/h-bbr.png);
	background-repeat: no-repeat;
	background-position: right top;
	margin: 0px;
	padding: 0px;
	float: right;
	height: 8px;
	width: 8px;
	font-size: 1px;
}
#header .block-foot-m {
	background-image: url(images/header/h-bbm.png);
	padding: 0px;
	width: auto;
	margin: 0px 8px 0px 8px;
	height: 8px;
	background-repeat: repeat-x;
	background-position: top;
	font-size: 1px;
}
/* innerbar for the rules, faq & ulguide */
.cat3
{
	background: url(images/titlebg2.jpg) #b7c5d2 repeat-x;
	height:20px;
	color: #000;
	font-size:8pt;
	font-weight:bold;	
}
/* end */

#main {
    display:block; 
    background:#D3DCE3;/*#CED8DF;*/
		border-top: 1px solid #929492; 
    border-left:1px solid #696969; 
    border-right:1px solid #696969;
    border-bottom:1px solid #696969;
    width:100%;
    padding:2px;
    margin: 0 auto;
}

#Calendar {
    display:block;
    color:#000; 
    padding:2px;
    margin: auto;
}

#logo {
		border-top: 3px solid #e8eff5;
		border-left: 2px solid #b2b2b2;
		border-right: 2px solid #b2b2b2;
    height:150px;
    width:100%;
}
.tracker_logo {
    background: url("images/Logo.png") no-repeat; 
    height:150px; 
    width:100%;
}

/* ПРОМЯНА ТУК: Добавени са center center и background-size: contain, за да се оразмерява логото без изрязване */
.tracker_logo {
    background: url("images/Logo.png") no-repeat center center; 
    background-size: contain;
    height:150px; 
    width:100%;
}

#nocolumns { width:100%; align:center; }

#footer{
    border-bottom: 1px solid #929492;
    height:100px;
    width:100%;
}

td.footer{
  background:transparent;
	height:69px;
  width:982px;
	position:absolute;
}

a:link,a:active,a:visited { color: #006699; text-decoration:none;}
a:hover { text-decoration:none; color: #EE4000; }

h1 {
    font-size: 10pt;
}

p {
    font-size: 8pt;
}

table {
    border:0px;
		
}
/*
table.tool { border-bottom: solid 1px #CFDBE5; }
table.usmen { background: #CFDBE5; }
table.lista {
    background: #A1BFD9;
    border-bottom:1px solid #EFF3F5;
}
*/
td.block {
	  background: url(images/titlebg2.jpg);
		line-height:22px;
    color: #222;
    padding-left: 3px;
    padding-right: 3px;
}
td.block a:link, td.block a:active, td.block a:visited { color: #006699; text-decoration:none;}
td.block a:hover { text-decoration:none; color: #EE4000; }
td.blocklist {
   background: #B7C5D2;
   padding:0;
   margin:0;
   font-size: 8pt;
   padding-left:5px;
   color: #000;
}
/*.user {background: #A1BFD9;}*/
td.lista {
    background:#ECEDF3;
    color : #000;
    padding:2px;
    margin:0px;
    font-size: 8pt;
    text-align:left;
    border-left:solid 1px #CFDBE5;
    border-right:solid 1px #CFDBE5;
}



td.header {
    color: black;
    height:27px;
    font-style: normal;
    background: url(images/titlebg.jpg) #E9F0F6 repeat-x;
    border-bottom: solid 1px #9BAEBF;
    border-top: solid 1px #FFFFFF;
    padding-left: 5px;
    padding-right: 5px;
}
.left_menu {
   background:url(images/catbg2.jpg);
	 height:20px;
	 color:#000;
}
.center_menu {
   background:url(images/tcat2.png);
	 height:20px;
	 color:#000;
}
.right_menu {
   background:url(images/titlebg2.jpg);
	 height:20px;
	 color:#000;
}
td.title {
    font-size: 8pt;
}

td.navigation {
    background-color: #DDE5EB;
    font-weight: bold;
    font-size: 8pt;
}

form {
    margin-top: 0;
    margin-bottom: 0;
}

.sublink {
    font-style: italic;
    font-size: 7pt;
    font-weight: normal;
}

a.index {
    font-weight: bold;
}

a.biglink {
    font-weight: bold;
    font-size: 10pt;
}

.important {
    font-weight: bold;
    font-size: 10pt;
}

td.red {
    /*background-color:#E0E1E8;*/
    color: red;
}


td.yellow {
    /*background-color:#E0E1E8;*/
    color: #536372;
}


td.green {
    /*background-color:#E0E1E8;*/
    color: green;
}

td.progress {
    padding: 0px;
    background-image: url(images/backprogress.gif);
    background-repeat: repeat-x;
    height: 10px;
}

td.red a:link {
    color: red;
}
td.red a:visited {
    color: red;
}

td.yellow a:link {
    color: #BEC635;
}
td.yellow a:visited {
    color: #BEC635;
}

td.green a:link {
    color: green;
}

td.green a:visited {
    color: green;
}
li{
list-style-position:inside;
} 

.error { color:black; font-weight: bold; font-size: 14pt; background:url(images/chr.gif); background-repeat: repeat-x;}
.information { color:black; font-weight: bold; font-size: 14pt; background:url(images/chb.gif); background-repeat: repeat-x;}
.success { color:black; font-weight: bold; font-size: 14pt; background:url(images/chg.gif); background-repeat: repeat-x;}

/* ######### End Main Tracker Body ######### Start Ajax Poll System ######### */

td.deleted {
    background-color:#FF95AC;
    color:#000000;
}

td.added {
    background-color:#C1FF83;
    color:#000000;
}

td.modified {
    background-color:#DEDEDE;
    color:#000000;
}

#mainContainer {
    width:100%;
    overflow:auto;
    text-align:left;
    background-color:#B7C5D2;
    
}

#mainContent {
    padding:0px;
        
}
  
.clear {
    clear:both;
}

.poller {  /* The poller box */
  
    width:100%;
    overflow:hidden;
}

.pollerTitle {  /* Poller title above radio buttons */
    margin-top:0px;
    margin-bottom:5px;
    font-style:italic;
    font-size:1em;
}

.pollerOption {  /* Label for each radio button */
    margin:0px;
}

.result_pollerOption {  /* Label for each option above graph - i.e. results */
    margin:0px;
    font-size:0.8em;
}

.result_pollerTitle {  /* Title of poller - when ajax shows the results */
    margin-top:0px;
    margin-bottom:5px;
    font-weight:bold;
    font-size:1em;
}

.result_pollGraph img {  /* Don't change this one, it is used to get the left and right image(the corner) positioned correctly */
    float:left;
}

.result_pollGraph div {  /* The <div> tag where the percentage result is shown */
    float:left;
    height:12px;
    background-repeat:repeat-x;
    color:#FFF;
    font-size:0.9em;
    line-height:16px;
}

.result_pollGraph {  /* Graph div - parent of both the corner images and the div displaying percentage votes */  
    height:12px;
}
  
.poller_waitMessage {  /* Message when Ajax is working getting restults fromt the server */
    display:none;  
}  

.result_totalVotes{
    clear:left;
    font-size:0.8em;
    margin-top:10px;
    font-style:italic;
    background:transparent;
}

th {
    text-align:left;
}
.formButton {
    width:75px;
}
/* ######### End Ajax Poll System ######### Start Ajax Chat ######### */
#chat {
overflow: auto;
width: 100%;
height: 220px;
padding: 0px;
}

#chatoutput ul {
    list-style: none;
    margin:0px;
    padding:0px;
    padding:5px 4px 6px 5px;
}

div.chatoutput {
    background:#dde6ef;
    padding:5px 0px 3px 10px;
    margin:0px;
    color:#006699;
    line-height: 150%;
    margin-bottom:2px;
}

div.loader {
background-image: url('images/ajaxchat/loading.gif'); 
background-repeat: no-repeat; 
background-position:center center; 
width:32px; 
height:32px;
}

#chatoutput ul li {
}

#chatoutput ul li span.name {
    display: block;
    background:url(images/ajaxchat/bubble.png) no-repeat left;
    padding-left:19px;
      margin-bottom:1px;
    font-weight: normal;
    color: #000;
}

#chatoutput ul li:hover span.name {
    background:url(images/ajaxchat/bubblehover.png) no-repeat left;
}

form {
    padding:0px;
    margin:6px;
}

#chatoutput {
    text-align: left;
    margin-right: 0px;
}

/* swaps edit and delete images on mouse over */
img.EditSwap {
background:url(images/ajaxchat/shout_edit_gray.gif) no-repeat bottom;
}
img.EditSwap:hover {
background:url(images/ajaxchat/shout_edit.png) no-repeat bottom; 
}
img.DeleteSwap {
background:url(images/ajaxchat/shout_delete_gray.gif) no-repeat bottom;
}
img.DeleteSwap:hover {
background:url(images/ajaxchat/shout_delete.png) no-repeat bottom; 
}
/* end of swaping */

img.form {
background:url(images/ajaxchat/frame.png) no-repeat;
}
img.form:hover {
background:url(images/ajaxchat/frame_hover.png) no-repeat;
}
/* ######### End Ajax Chat ######### */

/* ========== СЕЗОНИ - Хоризонтален ред ========== */
.imdb-seasons-section,
.tmdb-seasons-section {
    margin: 20px 0;
}

.imdb-seasons-section h4,
.tmdb-seasons-section h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 14px;
}

.imdb-seasons-grid,
.tmdb-seasons-grid {
    display: flex;
    flex-direction: row;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.imdb-season-card,
.tmdb-season-card {
    flex: 0 0 auto;
    width: 185px;
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.imdb-season-card:hover,
.tmdb-season-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.imdb-season-card img,
.tmdb-season-card img {
    width: 100%;
    height: 278px;
    object-fit: cover;
}

.imdb-season-number,
.tmdb-season-number {
    display: block;
    padding: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.imdb-season-episodes,
.tmdb-season-episodes {
    display: block;
    padding: 0 8px 10px;
    color: #aaa;
    font-size: 12px;
}

/* ========== АКТЬОРИ - Grid layout ========== */
.imdb-actors-section,
.tmdb-actors-section {
    margin: 20px 0;
}

.imdb-actors-section h4,
.tmdb-actors-section h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 14px;
}

.imdb-actors-grid,
.tmdb-actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.imdb-actor-card,
.tmdb-actor-card {
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
    padding: 10px;
}

.imdb-actor-card:hover,
.tmdb-actor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.imdb-actor-card img,
.tmdb-actor-card img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.imdb-actor-no-photo,
.tmdb-actor-no-photo {
    width: 100%;
    height: 185px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.imdb-actor-no-photo span,
.tmdb-actor-no-photo span {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
}

.imdb-actor-name,
.tmdb-actor-name {
    display: block;
    color: #ffd700;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
}

.imdb-actor-name a,
.tmdb-actor-name a {
    color: #ffd700;
    text-decoration: none;
}

.imdb-actor-name a:hover,
.tmdb-actor-name a:hover {
    text-decoration: underline;
}

.imdb-actor-char,
.tmdb-actor-char {
    display: block;
    color: #aaa;
    font-size: 11px;
}

/* ========== АДАПТИВЕН ДИЗАЙН ========== */
@media (max-width: 768px) {
    .imdb-actors-grid,
    .tmdb-actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .imdb-season-card,
    .tmdb-season-card {
        width: 140px;
    }
    
    .imdb-season-card img,
    .tmdb-season-card img {
        height: 210px;
    }
}

@media (max-width: 480px) {
    .imdb-actors-grid,
    .tmdb-actors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tmdb-actors-grid,
.imdb-actors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* ВИНАГИ 5 колони */
    gap: 15px;
    padding: 10px 0;
    justify-items: center; /* Центриране на картите */
}

/* Адаптивен дизайн за по-малки екрани */
@media (max-width: 1200px) {
    .tmdb-actors-grid,
    .imdb-actors-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 на ред на средни екрани */
    }
}

@media (max-width: 900px) {
    .tmdb-actors-grid,
    .imdb-actors-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 на ред */
    }
}

@media (max-width: 600px) {
    .tmdb-actors-grid,
    .imdb-actors-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 на ред на мобилни */
    }
}

@media (max-width: 400px) {
    .tmdb-actors-grid,
    .imdb-actors-grid {
        grid-template-columns: 1fr; /* 1 на ред на много малки екрани */
    }
}
/* ========== IMDB и TMDB БУТОНИ ========== */

.imdb-link {
    display: inline-block;
    background: #f5c518; /* ЖЪЛТ ЦВЯТ за IMDB */
    color: #000000; /* Черен текст */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.imdb-link:hover {
    background: #e3b816; /* По-тъмен жълт при hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4);
}

.tmdb-link {
    display: inline-block;
    background: #01b4e4; /* СВЕТЛОСИН ЦВЯТ за TMDB */
    color: #ffffff; /* Бял текст */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.tmdb-link:hover {
    background: #01a0cc; /* По-тъмен син при hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 180, 228, 0.4);
}
/* ========== YOUTUBE VIDEO ========== */
.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========== VIEW TOGGLE BUTTONS ========== */
.view-toggle-btn {
    display: inline-block;
    padding: 6px 16px;
    margin-left: 5px;
    background: #e0e1e8;
    border: 1px solid #4c77b6;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    background: #71a6cf;
    color: #fff;
}

.view-toggle-btn.active {
    background: #71a6cf;
    color: #fff;
    border-color: #072a66;
}

.view-toggle-btn.modern.active {
    background: #e74c3c;
    border-color: #c0392b;
}

/* ========== MODERN TORRENTS GRID ========== */
.modern-torrents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.torrent-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.torrent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.torrent-card-poster {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f0f0f0;
}

.torrent-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.torrent-card-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.torrent-card-badges .badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
}

.torrent-card-badges .badge.year {
    background: #2c3e50;
}

.torrent-card-badges .badge.quality {
    background: #e91e63;
}

.torrent-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.torrent-card:hover .torrent-card-overlay {
    opacity: 1;
}

.torrent-view-btn {
    padding: 10px 20px;
    background: #27ae60;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.torrent-view-btn:hover {
    background: #229954;
}

.torrent-card-content {
    padding: 15px;
}

.torrent-card-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    line-height: 1.4;
}

.torrent-card-meta {
    margin-bottom: 10px;
    font-size: 11px;
    color: #666;
}

.torrent-card-meta .uploader .value {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 3px;
}

.torrent-card-description {
    margin: 0 0 10px 0;
    font-size: 11px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.torrent-more-link {
    display: inline-block;
    color: #e74c3c;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.torrent-more-link:hover {
    text-decoration: underline;
}

.torrent-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
}

.torrent-card-stats .stat {
    display: flex;
    align-items: center;
    gap: 3px;
}

.torrent-download-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #27ae60;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.torrent-download-btn:hover {
    background: #229954;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .modern-torrents-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .torrent-card-poster {
        height: 340px;
    }
}

@media (max-width: 480px) {
    .modern-torrents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .torrent-card-poster {
        height: 280px;
    }
    
    .torrent-card-content {
        padding: 10px;
    }
    
    .torrent-card-title {
        font-size: 12px;
    }
}

/* Default poster placeholder */
.torrent-card-poster img[src="images/no-poster.png"],
.torrent-card-poster img[src*="no-poster"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.torrent-card-poster img[src="images/no-poster.png"]::before,
.torrent-card-poster img[src*="no-poster"]::before {
    content: "🎬";
    font-size: 48px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}








/* ============ СВЕТЛА ТЕМА + ЗАЩИТА ОТ CSS-А НА ТЕМАТА (С ФИКС) ============ */
.imdb-error{background:#fdecea;border:1px solid #f1c1c1;color:#b02a37;padding:12px 16px;border-radius:8px;margin:15px 0;font-size:14px;}

.bt-tracker-card,.bt-tracker-card *{box-sizing:border-box;}
div.bt-tracker-card{background:#ECEDF3 !important;color:#333 !important;border-radius:10px !important;padding:20px;font-family:"Segoe UI",Roboto,Arial,sans-serif;max-width:1200px;margin:20px auto;border:1px solid #e3e6ea !important;box-shadow:0 4px 14px rgba(0,0,0,.08) !important;text-align:left !important;clear:both !important;float:none !important;}
.bt-tracker-card img{max-width:100%;}

/* --- ГОРЕ: ПОСТЕР + ИНФО --- */
.bt-tracker-card .bt-top{display:flex !important;flex-direction:row !important;flex-wrap:nowrap !important;gap:25px !important;margin:0 0 25px 0 !important;padding:0 0 25px 0 !important;border-bottom:1px solid #e3e6ea !important;}
.bt-tracker-card .bt-poster-wrap{flex:0 0 280px !important;width:280px !important;max-width:280px !important;margin:0 !important;float:none !important;}
.bt-tracker-card .bt-poster{width:100% !important;height:auto !important;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,.18);display:block !important;}
.bt-tracker-card .bt-poster-placeholder{width:100%;aspect-ratio:2/3;background:#e9ecef;border-radius:12px;display:flex !important;align-items:center;justify-content:center;color:#868e96;font-size:14px;}
.bt-tracker-card .bt-info-wrap{flex:1 1 auto !important;display:block !important;float:none !important;}
.bt-tracker-card .bt-title{font-size:28px;margin:0 0 10px 0 !important;color:#111 !important;font-weight:700;}
.bt-tracker-card .bt-year{color:#868e96 !important;font-weight:400;}
.bt-tracker-card .bt-meta{display:flex !important;flex-direction:row !important;flex-wrap:wrap !important;gap:10px !important;align-items:center !important;margin:0 0 12px 0 !important;padding:0 !important;color:#555 !important;font-size:14px;}
.bt-tracker-card .bt-meta span{display:inline-block !important;width:auto !important;float:none !important;margin:0 !important;padding:0 !important;}
.bt-tracker-card .bt-sep{color:#adb5bd;}
.bt-tracker-card .bt-badges{display:flex !important;flex-direction:row !important;justify-content:flex-start !important;gap:10px !important;margin:0 0 12px 0 !important;flex-wrap:wrap !important;}
.bt-tracker-card .bt-badges a{margin:0 !important;float:none !important;}
.bt-tracker-card .bt-badge{display:inline-block !important;padding:5px 12px;border-radius:5px;font-size:12px;font-weight:700;text-decoration:none;text-transform:uppercase;transition:transform .15s;}
.bt-tracker-card .bt-badge:hover{transform:translateY(-2px);}
.bt-tracker-card .bt-badge-imdb{background:#f5c518;color:#000;}
.bt-tracker-card .bt-badge-tmdb{background:#01b4e4;color:#fff;}
.bt-tracker-card .bt-genres{display:flex !important;flex-direction:row !important;gap:8px !important;flex-wrap:wrap !important;margin:0 0 15px 0 !important;}
.bt-tracker-card .bt-genre-tag{background:#f1f3f5;color:#495057;padding:4px 12px;border-radius:20px;font-size:12px;border:1px solid #dee2e6;display:inline-block;}
.bt-tracker-card .bt-plot{font-size:14px;line-height:1.6;color:#444 !important;margin:0 !important;}

/* --- ДОЛУ: 3 КОЛОНИ --- */
.bt-tracker-card .bt-bottom{display:grid !important;grid-template-columns:repeat(3,1fr) !important;gap:20px !important;margin:0 !important;padding:0 !important;}
.bt-tracker-card .bt-col{background:#f8f9fa;border:1px solid #e3e6ea;border-radius:8px;display:flex !important;flex-direction:column !important;overflow:hidden;width:auto !important;margin:0 !important;float:none !important;}
.bt-tracker-card .bt-col-title{background:#eef1f4;color:#212529;padding:10px 15px;margin:0 !important;font-size:14px;font-weight:700;letter-spacing:1px;border-bottom:1px solid #e3e6ea;display:flex !important;justify-content:space-between !important;align-items:center;}
.bt-tracker-card .bt-col-title::after{content:"▾";color:#adb5bd;font-size:12px;}
.bt-tracker-card .bt-col-body{padding:10px;max-height:380px !important;overflow-y:auto !important;flex:1;display:block !important;}
.bt-tracker-card .bt-col-body::-webkit-scrollbar{width:6px;}
.bt-tracker-card .bt-col-body::-webkit-scrollbar-track{background:#f1f3f5;}
.bt-tracker-card .bt-col-body::-webkit-scrollbar-thumb{background:#c1c9d0;border-radius:3px;}
.bt-tracker-card .bt-col-body::-webkit-scrollbar-thumb:hover{background:#aeb6bd;}

/* CAST – кръгли снимки 45px */
.bt-tracker-card .bt-cast-item{display:flex !important;flex-direction:row !important;gap:10px !important;padding:8px;border-radius:6px;margin:0 0 5px 0 !important;transition:background .15s;}
.bt-tracker-card .bt-cast-item:hover{background:#eef1f4;}
.bt-tracker-card .bt-cast-photo{width:45px !important;height:45px !important;border-radius:50% !important;object-fit:cover;flex-shrink:0 !important;display:block;}
.bt-tracker-card .bt-no-photo{background:#dee2e6;color:#868e96;display:flex !important;align-items:center;justify-content:center;font-weight:700;font-size:16px;}
.bt-tracker-card .bt-cast-info{display:flex !important;flex-direction:column !important;justify-content:center;overflow:hidden;}
.bt-tracker-card .bt-cast-name{color:#212529 !important;text-decoration:none;font-weight:600;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.bt-tracker-card .bt-cast-name:hover{color:#0d6efd;text-decoration:underline;}
.bt-tracker-card .bt-cast-char{color:#868e96;font-size:12px;font-style:italic;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}

/* CREW – кръгли снимки 45px (ФИКСЪТ) */
.bt-tracker-card .bt-crew-item{display:flex !important;flex-direction:row !important;gap:10px !important;padding:8px;border-radius:6px;margin:0 0 5px 0 !important;transition:background .15s;}
.bt-tracker-card .bt-crew-item:hover{background:#eef1f4;}
.bt-tracker-card .bt-crew-photo{width:45px !important;height:45px !important;border-radius:50% !important;object-fit:cover;flex-shrink:0 !important;display:block;}
.bt-tracker-card .bt-crew-info{display:flex !important;flex-direction:column !important;justify-content:center;overflow:hidden;}
.bt-tracker-card .bt-crew-role{display:block !important;color:#868e96;font-size:11px;text-transform:uppercase;letter-spacing:.5px;margin:0 0 2px 0 !important;}
.bt-tracker-card .bt-crew-name{color:#212529 !important;text-decoration:none;font-size:14px;font-weight:500;}
.bt-tracker-card .bt-crew-name:hover{color:#0d6efd;text-decoration:underline;}

/* EXTRA – с иконки */
.bt-tracker-card .bt-extra-list{list-style:none !important;margin:0 !important;padding:0 !important;}
.bt-tracker-card .bt-extra-list li{display:flex !important;flex-direction:row !important;gap:10px !important;align-items:flex-start;padding:8px 10px;border-bottom:1px solid #e9ecef;font-size:13px;color:#444;margin:0 !important;}
.bt-tracker-card .bt-extra-list li:last-child{border-bottom:none;}
.bt-tracker-card .bt-extra-ico{width:34px !important;height:34px !important;background:#e9ecef;border-radius:8px;display:flex !important;align-items:center;justify-content:center;font-size:16px;flex-shrink:0 !important;}
.bt-tracker-card .bt-extra-list li strong{color:#868e96;display:block !important;font-size:11px;text-transform:uppercase;letter-spacing:.5px;margin:0 0 2px 0 !important;}
.bt-tracker-card .bt-empty{color:#999;text-align:center;padding:20px;font-style:italic;}

/* СЕЗОНИ */
.bt-tracker-card .bt-seasons-section{margin:25px 0 0 0 !important;}
.bt-tracker-card .bt-section-title{color:#212529 !important;font-size:16px;margin:0 0 12px 0 !important;letter-spacing:.5px;}
.bt-tracker-card .bt-seasons-grid{display:flex !important;flex-direction:row !important;gap:12px !important;overflow-x:auto !important;padding:0 0 10px 0 !important;}
.bt-tracker-card .bt-season-card{position:relative !important;flex:0 0 110px !important;width:110px !important;max-width:110px !important;margin:0 !important;border-radius:8px;overflow:hidden;float:none !important;}
.bt-tracker-card .bt-season-card img{width:100% !important;height:auto !important;display:block !important;border-radius:8px;}
.bt-tracker-card .bt-season-number{position:absolute !important;bottom:6px;left:6px;background:rgba(0,0,0,.7);color:#ffd75e;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:700;}
.bt-tracker-card .bt-season-episodes{position:absolute !important;bottom:6px;right:6px;background:rgba(0,0,0,.7);color:#eee;padding:2px 6px;border-radius:4px;font-size:11px;}

/* ЕПИЗОДИ */
.bt-tracker-card .bt-episodes-season{margin:20px 0 0 0 !important;}
.bt-tracker-card .bt-episodes-grid{display:grid !important;grid-template-columns:repeat(auto-fill,minmax(280px,1fr)) !important;gap:12px !important;}
.bt-tracker-card .bt-episode-card{background:#fff;border:1px solid #e3e6ea;border-radius:8px;overflow:hidden;margin:0 !important;}
.bt-tracker-card .bt-episode-thumb img{width:100% !important;display:block !important;}
.bt-tracker-card .bt-episode-no-thumb{width:100%;aspect-ratio:16/9;background:#e9ecef;display:flex;align-items:center;justify-content:center;color:#868e96;font-size:20px;font-weight:700;}
.bt-tracker-card .bt-episode-info{padding:10px;display:flex !important;flex-direction:column !important;gap:4px !important;}
.bt-tracker-card .bt-episode-title{color:#212529;font-size:13px;}
.bt-tracker-card .bt-episode-date,.bt-tracker-card .bt-episode-rating{color:#868e96;font-size:11px;}
.bt-tracker-card .bt-episode-overview{color:#666;font-size:12px;margin:4px 0 0 0;line-height:1.4;}

/* МОБИЛНИ */
@media (max-width:768px){
    .bt-tracker-card .bt-top{flex-direction:column !important;}
    .bt-tracker-card .bt-poster-wrap{flex:1 1 auto !important;width:100% !important;max-width:200px !important;margin:0 auto !important;}
    .bt-tracker-card .bt-bottom{grid-template-columns:1fr !important;}
}
