/* ============================================================
   ESTILOS GLOBALES - MoviesMartinLibre
   ============================================================ */

:root {
    --color-fondo: #121212;
    --color-principal: #1a1a1a;
    --color-secundario: #2c2c2c;
    --color-acento-amarillo: #f5c518;
    --color-acento-celeste: #33AFFF;
    --color-acento-verde: #4caf50;
    --color-acento-rojo: #f44336;
    --color-texto-claro: #F0F0F0;
    
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-filters: #1e1e1e;
    --text-primary: #F0F0F0;
    --text-secondary: #cccccc;
    --text-muted: #aaaaaa;
    --border-color: #333;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM73w0aXpsog.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM73w9aXpsog.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM73w2aXpsog.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM73w3aXpsog.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM73w5aXo.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* hebrew */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* math */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTVOmu1aB.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTUGmu1aB.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}
/* vietnamese */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* hebrew */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* math */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTVOmu1aB.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTUGmu1aB.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}
/* vietnamese */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Open Sans', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================================
   MODO CLARO - Variables
   ============================================================ */
body.light-mode {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-filters: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #555555;
    --border-color: #ddd;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================================================
   HEADER Y LOGO
   ============================================================ */
header {
    background-color: #000;
    padding: 10px 40px;
    border-bottom: 2px solid var(--color-acento-celeste);
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-acento-amarillo);
    margin-left: 15px;
    font-size: 2em;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ============================================================
   BARRA DE FILTROS (unificada)
   ============================================================ */
.filters-bar {
    padding: 15px 40px;
    background-color: var(--bg-filters);
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filters-row-left {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}


.filters-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-group, .score-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-group label,
.search-group label,
.score-group label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* Inputs */
#search-input, #search-title-input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #2e2e2e;
    color: var(--color-texto-claro);
    min-width: 180px;
}

#score-min {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #2e2e2e;
    color: var(--color-texto-claro);
    width: 150px;
}

#sort-by {
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
}

/* Botones de filtro */
.filter-btn {
    background-color: #333;
    color: var(--color-texto-claro);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: var(--color-acento-celeste);
}

.filter-btn.active {
    background-color: var(--color-acento-amarillo);
    color: var(--color-fondo);
    border: 2px solid var(--color-acento-amarillo);
}

.fav-btn.active {
    background: linear-gradient(135deg, #ff9800, #e94560) !important;
    color: white !important;
    border-color: #e94560 !important;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.genre-btn.active {
    background-color: var(--color-acento-celeste);
    color: var(--color-fondo);
    border: 2px solid var(--color-acento-celeste);
}

.type-btn.active {
    background-color: var(--color-acento-amarillo);
    color: var(--color-fondo);
    border: 2px solid var(--color-acento-amarillo);
}

/* Modo claro para inputs */
body.light-mode #search-input,
body.light-mode #search-title-input {
    background-color: white;
    border-color: #ddd;
    color: #333;
}

body.light-mode #score-min {
    background-color: white;
    border-color: #ddd;
    color: #333;
}

body.light-mode .filter-btn {
    background-color: #e0e0e0;
    color: #333;
}

body.light-mode .filter-btn:hover {
    background-color: #d0d0d0;
}

body.light-mode #sort-by {
    background-color: #e0e0e0;
    color: #333;
}

/* ============================================================
   GRILLA DE CONTENIDO (index.php)
   ============================================================ */
#content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px;
}

.card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    height: auto !important;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(51, 175, 255, 0.5);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    cursor: pointer;
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    -webkit-user-drag: none;
    user-select: none;
}

.card:hover .card-image {
    transform: scale(1.08);
}

.card-info {
    padding: 10px;
    flex-grow: 1;
}

.card-info h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
    word-wrap: break-word;
}

.score-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-acento-amarillo);
    color: var(--color-fondo);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2em;
    z-index: 10;
    pointer-events: none;
}

.score-large {
    display: inline-block;
    background-color: var(--color-principal);
    color: var(--color-acento-amarillo);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    margin-right: 8px;
}

.score-large-peli {
    display: inline-block;
    background-color: var(--color-principal);
    color: var(--color-acento-amarillo);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.9em;
    margin-right: 8px;
}


.score-stars {
    color: var(--color-acento-amarillo);
    font-size: 0.9em;
    margin-top: 5px;
}

.star-rating {
    display: inline-block;
}

.star-rating .fa-star, 
.star-rating .fa-star-half-alt {
    color: var(--color-acento-amarillo);
}

/* ============================================================
   SKELETON SCREENS
   ============================================================ */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px;
}

.skeleton-card {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    height: 380px;
    animation: shimmer 1.5s infinite;
}

body.light-mode .skeleton-card {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================
   TOOLTIPS
   ============================================================ */
.card {
    position: relative;
    overflow: visible !important;
}

.card-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.95) transparent transparent transparent;
}

.card:hover .card-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

body.light-mode .card-tooltip {
    background: rgba(255, 255, 255, 0.98);
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .card-tooltip::after {
    border-color: rgba(255, 255, 255, 0.98) transparent transparent transparent;
}

.tooltip-type, .tooltip-year, .tooltip-score {
    display: inline-block;
}

.tooltip-separator {
    margin: 0 6px;
    color: #f5c518;
    font-weight: bold;
}

body.light-mode .tooltip-separator {
    color: #e94560;
}

/* ============================================================
   PAGINACIÓN
   ============================================================ */
#pagination-controls {
    text-align: center;
    padding: 20px;
}

#pagination-controls .filter-btn {
    margin: 0 5px;
}

#pagination-controls .filter-btn.active {
    background-color: var(--color-acento-celeste);
    color: var(--color-fondo);
    border: 2px solid var(--color-acento-celeste);
    pointer-events: none;
}

/* ============================================================
   DETALLE DE PELÍCULA Y SERIE
   ============================================================ */
.detalle-container {
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

.detalle-header {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.detalle-poster {
    flex-shrink: 0;
    width: 300px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.detalle-info {
    flex-grow: 1;
}

.detalle-info h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-acento-amarillo);
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

body.light-mode .detalle-info h2 {
    color: #1a1a2e !important;
}

/* Botones de acción */
.detalle-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-usc, .btn-primary, .btn-secondary, .btn-imdb, .btn-download-yellow {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    white-space: nowrap;
}

.btn-usc {
    background-color: var(--color-acento-celeste);
    color: var(--color-principal);
}

.btn-primary {
    background-color: var(--color-acento-verde);
    color: var(--color-principal);
}

.btn-secondary {
    background-color: var(--color-acento-rojo);
    color: white;
}

.btn-imdb {
    background-color: #f5c518;
    color: #000000;
}

.btn-download-yellow {
    background-color: #f5c518;
    color: #000000;
}

.btn-download-yellow:hover {
    background-color: #ffd84d;
}

.btn-download-yellow i {
    margin-right: 8px;
    color: #000000;
}

.btn-usc i, .btn-primary i, .btn-secondary i, .btn-imdb i {
    margin-right: 8px;
}

/* Sinopsis */
.synopsis {
    margin-top: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
}

body.light-mode .synopsis {
    color: #222 !important;
}

/* Metadata */
.metadata {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.metadata h3 {
    border-bottom: 2px solid var(--color-acento-celeste);
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

body.light-mode .metadata h3 {
    color: #1a1a2e !important;
    border-bottom-color: #e94560 !important;
}

.metadata p {
    margin: 5px 0;
    color: var(--text-secondary);
}

body.light-mode .metadata p {
    color: #333 !important;
}

.metadata strong {
    color: var(--text-primary);
}

body.light-mode .metadata strong {
    color: #1a1a2e !important;
}

/* ============================================================
   TRAILER
   ============================================================ */
.trailer-section {
    margin-top: 40px;
}

.trailer-section h3 {
    border-bottom: 2px solid var(--color-acento-celeste);
    padding-bottom: 5px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

body.light-mode .trailer-section h3 {
    color: #1a1a2e !important;
    border-bottom-color: #e94560 !important;
}

.trailer-container-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.trailer-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ============================================================
   REPRODUCTOR DE VIDEO
   ============================================================ */
.video-player-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #0d0d0d;
    border-radius: 8px;
    border: 2px solid var(--color-acento-amarillo);
}

body.light-mode .video-player-section {
    background-color: #f5f5f5 !important;
}

.video-player-section h3 {
    border-bottom: 2px solid var(--color-acento-amarillo);
    color: var(--color-acento-amarillo);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

body.light-mode .video-player-section h3 {
    color: #1a1a2e !important;
    border-bottom-color: #e94560 !important;
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 20px;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.player-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-player-lang {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s, box-shadow 0.2s;
    background-color: #333;
    color: var(--color-texto-claro);
    border: 2px solid #555;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-player-lang:hover, .btn-player-lang.active {
    background-color: var(--color-acento-celeste);
    color: var(--color-fondo);
    border-color: var(--color-acento-celeste);
    box-shadow: 0 0 10px rgba(51, 175, 255, 0.5);
}

/* ============================================================
   EPISODIOS (Series)
   ============================================================ */
.episode-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.episode-btn {
    background-color: var(--color-secundario);
    color: white;
    border: 1px solid #444;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
    white-space: nowrap;
}

body.light-mode .episode-btn {
    background-color: #e8e8e8 !important;
    color: #333 !important;
    border-color: #ccc !important;
}

body.light-mode .episode-btn:hover {
    background-color: #d0d0d0 !important;
}

.episode-btn.active {
    background-color: var(--color-acento-celeste);
    border-color: var(--color-acento-celeste);
    color: var(--color-principal);
    font-weight: bold;
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.loading-state {
    text-align: center;
    padding: 50px;
    font-size: 1.5em;
    color: var(--color-acento-celeste);
}

/* ============================================================
   INDICADOR DE FILTROS ACTIVOS
   ============================================================ */
#active-filters-indicator {
    background: linear-gradient(135deg, #16213e, #0f3460);
    border-left: 4px solid #e94560;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    margin: 10px 20px;
    font-size: 13px;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* ============================================================
   BOTÓN ACTUALIZAR LINKS
   ============================================================ */
.btn-actualizar-links {
    background: linear-gradient(135deg, #ff9800, #f44336);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.btn-actualizar-links:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-actualizar-links:active {
    transform: translateY(1px);
}

.btn-actualizar-links:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-actualizar-verde-largo {
    display: block;
    background-color: var(--color-acento-verde);
    color: var(--color-principal);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.btn-actualizar-verde-largo:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.btn-actualizar-verde-largo i {
    margin-right: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    margin-top: 40px;
    border-top: 1px solid #333;
}

body.light-mode footer {
    background-color: #e8e8e8 !important;
    border-top-color: #ccc !important;
}

body.light-mode footer p {
    color: #555 !important;
}

.footer-stats {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
}

.stat-item i {
    font-size: 13px;
    color: var(--color-acento-amarillo);
}

.stat-label {
    font-size: 11px;
    color: #888;
}

.stat-value {
    font-size: 12px;
    font-weight: bold;
    color: var(--color-acento-amarillo);
    font-family: 'Montserrat', sans-serif;
}

.copyright {
    display: inline-flex;
    align-items: center;
}

.copyright p {
    color: #666;
    font-size: 10px;
    margin: 0;
    white-space: nowrap;
}

/* Modo claro footer */
body.light-mode footer {
    background-color: #f5f5f5;
    border-top-color: #ddd;
}

body.light-mode .stat-label {
    color: #999;
}

body.light-mode .copyright p {
    color: #aaa;
}

/* ============================================================
   BOTÓN DE TEMA (Theme Toggle)
   ============================================================ */
.theme-toggle {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f5c518;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
}

body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #e94560;
}

body.light-mode .theme-toggle i {
    color: #e94560;
}

body.light-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 1);
}

/* ============================================================
   MENÚ DE USUARIO DESPLEGABLE
   ============================================================ */
.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: rgba(255,255,255,0.2);
}

.user-avatar i:first-child {
    font-size: 20px;
    color: #f5c518;
}

.user-name-header {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.user-avatar .fa-chevron-down {
    font-size: 12px;
    color: #aaa;
    transition: transform 0.3s;
}

.user-menu.active .user-avatar .fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #1e1e2e;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.user-dropdown a i {
    width: 20px;
    font-size: 16px;
    color: #f5c518;
}

.user-dropdown a:hover {
    background: rgba(245,197,24,0.1);
    color: #f5c518;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 5px 0;
}

.logout-link {
    color: #e94560 !important;
}

.logout-link i {
    color: #e94560 !important;
}

.logout-link:hover {
    background: rgba(233,69,96,0.1) !important;
}

/* Modo claro menú usuario */
body.light-mode .user-avatar {
    background: rgba(0,0,0,0.05);
}

body.light-mode .user-name-header {
    color: #1a1a2e;
}

body.light-mode .user-dropdown {
    background: white;
    border-color: #ddd;
}

body.light-mode .user-dropdown a {
    color: #333;
}

body.light-mode .user-dropdown a:hover {
    background: rgba(245,197,24,0.1);
}

/* ============================================================
   BOTÓN FAVORITO
   ============================================================ */
.btn-favorito {
    background: transparent;
    border: 2px solid #e94560;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.btn-favorito i {
    font-size: 20px;
    color: #e94560;
}

.btn-favorito.active {
    background: #e94560;
    border-color: #e94560;
}

.btn-favorito.active i {
    color: white;
}

.btn-favorito:hover {
    transform: scale(1.1);
}

/* ============================================================
   MODAL DE GÉNEROS
   ============================================================ */
.genre-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.genre-modal-content {
    background: #1e1e2e;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #f5c518;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.genre-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background: #1e1e2e;
    border-radius: 20px 20px 0 0;
}

.genre-modal-header h3 {
    color: #f5c518;
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #f5c518;
    transform: scale(1.1);
}

.genre-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 20px;
}

.genre-option {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #444;
    border-radius: 30px;
    padding: 10px 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 14px;
}

.genre-option:hover {
    background: #f5c518;
    color: #1a1a2e;
    border-color: #f5c518;
    transform: translateY(-2px);
}

.genre-option.active {
    background: #f5c518;
    color: #1a1a2e;
    border-color: #f5c518;
    font-weight: bold;
}

/* Modo claro modal */
body.light-mode .genre-modal-content {
    background: white;
    border-color: #e94560;
}

body.light-mode .genre-modal-header {
    background: white;
    border-bottom-color: #eee;
}

body.light-mode .genre-option {
    background: #f0f0f0;
    border-color: #ddd;
    color: #333;
}

body.light-mode .genre-option:hover,
body.light-mode .genre-option.active {
    background: #e94560;
    color: white;
    border-color: #e94560;
}

/* Scrollbar modal */
.genre-modal-content::-webkit-scrollbar {
    width: 6px;
}

.genre-modal-content::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}

.genre-modal-content::-webkit-scrollbar-thumb {
    background: #f5c518;
    border-radius: 10px;
}

body.light-mode .genre-modal-content::-webkit-scrollbar-track {
    background: #eee;
}

body.light-mode .genre-modal-content::-webkit-scrollbar-thumb {
    background: #e94560;
}

/* ============================================================
   RESPONSIVE (unificado)
   ============================================================ */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 8px 12px !important;
    }
    
    .logo img {
        height: 32px !important;
    }
    
    .logo h1 {
        font-size: 0.9em !important;
    }
    
    .theme-toggle {
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
    
    .theme-toggle span {
        display: none !important;
    }
    
    /* User menu */
    .user-name-header {
        display: none;
    }
    
    .user-avatar {
        padding: 8px 10px;
    }
    
    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    
    .user-menu.active .user-dropdown {
        transform: translateY(0);
    }
    
    /* Filtros */
    .filters-bar {
        padding: 15px 20px;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-row .filter-group,
    .filters-row .search-group,
    .filters-row .score-group {
        justify-content: space-between;
        width: 100%;
    }
    
    #search-title-input, 
    #search-input {
        flex: 1;
        min-width: auto;
    }
    
    #score-min {
        flex: 1;
    }
    
    #sort-by {
        flex: 1;
    }
    
    .filter-group#favorite-filters {
        justify-content: center;
    }
    
    /* Detalle */
    .detalle-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .detalle-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .detalle-container {
        padding: 20px;
    }
    
    .detalle-info h2 {
        font-size: 2em;
    }
    
    .detalle-actions {
        justify-content: center;
    }
    
    /* Skeleton */
    .skeleton-card {
        height: 300px;
    }
    
    /* Tooltip */
    .card-tooltip {
        font-size: 10px;
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    /* Footer */
    footer {
        padding: 10px 15px;
    }
    
    .stats-container {
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    .stat-item {
        justify-content: center;
    }
    
    .copyright p {
        white-space: normal;
        text-align: center;
    }
    
    /* Modal géneros */
    .genre-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .genre-option {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 400px) {
    .logo h1 {
        font-size: 0.75em !important;
    }
    
    .logo img {
        height: 28px !important;
    }
}

/* Pantallas grandes para botón */
@media (min-width: 800px) {
    .btn-actualizar-verde-largo {
        margin-left: auto;
        margin-right: auto;
        max-width: 80%;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.fav-btn {
    transition: all 0.3s ease;
}

.fav-btn:hover {
    transform: scale(1.02);
}

#sort-group {
    margin-left: 10px;
}

/* Modal de descarga */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.download-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 30px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    border: 1px solid #f5c518;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.download-modal-content h3 {
    color: #f5c518;
    margin-bottom: 20px;
    font-size: 22px;
}

.download-modal-content p {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 14px;
    word-break: break-all;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download-now {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-download-now:hover {
    transform: scale(1.02);
}

.btn-share-wvc {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
}

.btn-share-wvc:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #1B5E20, #388E3C);
}

.btn-share-wvc img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.btn-close-modal {
    background: transparent;
    border: 1px solid #888;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    background: rgba(255,255,255,0.1);
}

body.dark-mode .download-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.light-mode .download-modal-content {
    background: white;
    border-color: #e94560;
}

body.light-mode .download-modal-content h3 {
    color: #e94560;
}

body.light-mode .download-modal-content p {
    color: #555;
}

@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
    }
    .btn-download-now, .btn-share-wvc {
        justify-content: center;
    }
}