@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400; 500; 600; 700&display=swap'); :root {--bg:#0c1016; --bg-2:#151f29; --bg-3:#2a3542; --bg-dark:#0f1720; --card:#1e2a38; --accent:#2a9d8f; --accent-red:#eb5757; --accent-gold:#c9af1c; --text:#e6e6e6; --text-secondary:#a8b0b9; --text-tertiary:#6c7a8a; --bdc:#2a3542; --bg-btn:#2a9d8f; --bg-btn-hover:#227a6f; --tt-accent:#3aa8e0; --shadow:rgba(0,0,0,0.2); --footer-text:#a8b0b9; --footer-text-light:#6c7a8a; --footer-link:#a8b0b9; --footer-link-hover:#2a9d8f; --footer-border:#2a3542}
[data-theme="light"] {--bg:#fff; --bg-2:#f2f2f2; --bg-3:#c8c9c6; --bg-dark:#363851; --card:#ffffff; --accent:#2a99d9; --accent-red:#eb5757; --accent-gold:#c9af1c; --text:#161616; --text-secondary:#757b85; --text-tertiary:#424464; --bdc:#e0e0e0; --bg-btn:#363851; --bg-btn-hover:#5a5d81; --tt-accent:#2a99d9; --shadow:rgba(0,0,0,0.08); --footer-text:#4a4f5e; --footer-text-light:#6c6f7e; --footer-link:#4a4f5e; --footer-link-hover:#2a99d9; --footer-border:#e0e0e0}
* {margin:0; padding:0; box-sizing:border-box}
body {font-family:'Inter',sans-serif; background-color:var(--bg); color:var(--text); min-height:100vh; display:flex; flex-direction:column; overflow-x:hidden; overflow-y:auto; letter-spacing:0.02em; transition:background-color 0.3s ease,color 0.3s ease}
::selection {background:var(--accent); color:#fff}
header {background:var(--bg); backdrop-filter:blur(12px); border-bottom:1px solid var(--bdc); position:sticky; top:0; z-index:100; padding:1rem 0; width:100%; transition:background 0.3s ease}
.header-content {max-width:1200px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px}
.header-actions {display:flex; align-items:center; gap:12px}
.logo {font-size:28px; font-weight:700; letter-spacing:-1px; color:var(--text); text-decoration:none; display:flex; align-items:center; gap:8px}
.logo span {color:var(--accent)}
.theme-toggle {background:var(--bg-2); border:1px solid var(--bdc); border-radius:40px; padding:8px 16px; cursor:pointer; font-size:18px; transition:all 0.3s ease; display:flex; align-items:center; gap:8px}
.theme-toggle:hover {transform:scale(1.05); background:var(--bg-3)}
.theme-icon-dark {display:inline}
.theme-icon-light {display:none}
[data-theme="light"] .theme-icon-dark {display:none}
[data-theme="light"] .theme-icon-light {display:inline}
.btn-library {background:rgba(42,153,217,0.1); border:1px solid var(--accent); color:var(--accent); padding:10px 24px; border-radius:40px; font-size:14px; font-weight:500; cursor:pointer; transition:all 0.3s ease; text-decoration:none; display:inline-flex; align-items:center; gap:8px}
.btn-library:hover {background:var(--accent); border-color:var(--accent); transform:translateY(-2px); color:#fff}
main {flex:1; max-width:1200px; margin:0 auto; padding:40px 24px 80px; width:100%}
.search-section {text-align:center; margin-bottom:40px}
.search-title {font-size:42px; font-weight:700; margin-bottom:16px; letter-spacing:-1.5px}
.search-subtitle {font-size:20px; color:var(--text-secondary); max-width:600px; margin:0 auto 50px}
.search-container {position:relative; max-width:720px; margin:0 auto}
.search-input {width:100%; padding:20px 28px 20px 68px; font-size:18px; background-color:var(--card); border:2px solid var(--bdc); border-radius:16px; color:var(--text); transition:all 0.3s ease}
.search-input:focus {outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(42,153,217,0.2)}
.search-input::placeholder {color:var(--text-tertiary); opacity:0.6}
.search-icon {position:absolute; left:28px; top:50%; transform:translateY(-50%); font-size:24px; color:var(--text-tertiary); pointer-events:none}
.search-hint {margin-top:16px; font-size:14px; color:var(--text-tertiary); display:flex; justify-content:center; gap:24px; flex-wrap:wrap}
.search-results-section {margin-top:40px; display:none}
.search-results-section.visible {display:block}
.results-header {display:flex; justify-content:space-between; align-items:baseline; margin-bottom:20px; padding:0 10px}
.results-title {font-size:22px; font-weight:600}
.results-count {color:var(--accent); font-size:14px}
.results-grid {display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:20px; margin-top:20px}
.movie-card {background:var(--card); border-radius:12px; overflow:hidden; cursor:pointer; transition:all 0.3s ease; border:1px solid var(--bdc); box-shadow:0 2px 8px var(--shadow)}
.movie-card:hover {transform:translateY(-4px); border-color:var(--accent); box-shadow:0 8px 24px var(--shadow)}
.card-poster {position:relative; aspect-ratio:2/3; overflow:hidden; background:linear-gradient(135deg,var(--bg-2) 0,var(--bg-dark) 100%)}
.card-poster img {width:100%; height:100%; object-fit:cover; transition:transform 0.3s ease}
.movie-card:hover .card-poster img {transform:scale(1.05)}
.card-badges-top {position:absolute; top:10px; left:10px; display:flex; flex-direction:column; align-items:flex-start; gap:6px; z-index:2}
.card-badge {background:var(--accent); color:white; padding:4px 10px; border-radius:20px; font-size:11px; font-weight:700}
.card-quality {background:rgba(0,0,0,0.8); color:var(--accent-gold); padding:4px 10px; border-radius:20px; font-size:11px; font-weight:700; border:1px solid rgba(201,175,28,0.3)}
.card-info {padding:12px}
.card-title {font-size:14px; font-weight:600; margin-bottom:6px; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.card-year {font-size:12px; color:var(--accent)}
.card-genres {display:flex; flex-wrap:wrap; gap:4px; margin-top:6px}
.card-genre {font-size:9px; color:var(--text-secondary); background:rgba(0,0,0,0.08); padding:2px 6px; border-radius:10px}
[data-theme="dark"] .card-genre {background:rgba(255,255,255,0.08)}
.player-wrapper {background:var(--card); border-radius:20px; overflow:hidden; margin:40px auto; max-width:1000px; transition:all 0.4s ease; border:1px solid var(--bdc); box-shadow:0 4px 16px var(--shadow)}
.player-wrapper.hidden {display:none}
.player-container {position:relative; width:100%; padding-bottom:56.25%; background:#000}
.player-container iframe {position:absolute; top:0; left:0; width:100%; height:100%; border:none}
.player-info {padding:20px 24px; background:var(--bg-2); border-top:1px solid var(--bdc)}
.movie-title {font-size:22px; font-weight:700; margin-bottom:8px}
.movie-meta {display:flex; gap:16px; flex-wrap:wrap; color:var(--text-secondary); font-size:13px; margin-bottom:12px}
.movie-description {color:var(--text-tertiary); font-size:14px; line-height:1.5; margin-top:10px}
.loading {text-align:center; padding:60px 40px}
.loading-spinner {width:50px; height:50px; border:3px solid var(--bdc); border-top-color:var(--accent); border-radius:50%; margin:0 auto 20px; animation:spin 1s linear infinite}
@keyframes spin {to {transform:rotate(360deg)}
}
.error-message {background:rgba(235,87,87,0.1); border:1px solid rgba(235,87,87,0.3); border-radius:12px; padding:40px; text-align:center; color:var(--accent-red)}
.api-stats {position:fixed; bottom:16px; right:16px; background:var(--bg); backdrop-filter:blur(8px); padding:6px 14px; border-radius:20px; font-size:11px; color:var(--text-tertiary); border:1px solid var(--bdc); z-index:1000; font-family:monospace; pointer-events:none; box-shadow:0 2px 8px var(--shadow)}
footer {border-top:1px solid var(--footer-border); padding:40px 24px 24px; margin-top:auto; transition:background 0.3s ease}
.footer-content {max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:40px}
.footer-left {max-width:400px}
.footer-logo {font-size:22px; font-weight:700; margin-bottom:10px; color:var(--text)}
.footer-text {color:var(--footer-text); line-height:1.6; font-size:14px}
.footer-links {display:flex; gap:40px; flex-wrap:wrap}
.footer-column h4 {color:var(--text); font-size:15px; margin-bottom:16px; font-weight:600}
.footer-column a {display:block; color:var(--footer-link); text-decoration:none; margin-bottom:8px; transition:color 0.2s; font-size:14px; cursor:pointer}
.footer-column a:hover {color:var(--footer-link-hover)}
.support-email {color:var(--footer-text); font-size:14px; line-height:1.6}
.support-email a {color:var(--accent); text-decoration:none; display:inline; margin:0; font-weight:500}
.support-email a:hover {text-decoration:underline}
.footer-bottom {max-width:1200px; margin:40px auto 0; padding-top:20px; border-top:1px solid var(--footer-border); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; font-size:12px; color:var(--footer-text-light)}
.footer-bottom div {color:var(--footer-text-light)}
.accent {color:var(--accent)}
.modal {display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); backdrop-filter:blur(8px); z-index:2000; justify-content:center; align-items:center}
.modal.active {display:flex}
.modal-content {background:var(--card); border-radius:24px; max-width:500px; width:90%; max-height:85vh; overflow-y:auto; padding:24px; border:1px solid var(--bdc); position:relative}
.modal-header {display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--bdc)}
.modal-header h3 {font-size:22px; color:var(--accent)}
.modal-close {background:none; border:none; color:var(--text-tertiary); font-size:28px; cursor:pointer; line-height:1}
.modal-close:hover {color:var(--text)}
.modal-body {color:var(--text-secondary); line-height:1.5; font-size:14px}
.modal-body h4 {color:var(--text); margin:16px 0 8px 0}
.cookie-banner {position:fixed; bottom:0; left:0; right:0; background:var(--card); border-top:1px solid var(--bdc); padding:12px 20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; z-index:1500; backdrop-filter:blur(10px); transform:translateY(100%); transition:transform 0.4s ease}
[data-theme="dark"] .cookie-banner {background:rgba(30,42,56,0.98)}
[data-theme="light"] .cookie-banner {background:rgba(255,255,255,0.98)}
.cookie-banner.show {transform:translateY(0)}
.cookie-text {font-size:13px; color:var(--text-secondary); flex:1}
.cookie-buttons {display:flex; gap:12px}
.cookie-btn {padding:6px 18px; border-radius:30px; border:none; font-weight:600; cursor:pointer; font-size:13px}
.cookie-accept {background:var(--accent); color:white}
.cookie-accept:hover {background:var(--bg-btn-hover)}
.cookie-decline {background:var(--bg-3); color:var(--text-secondary)}
.cookie-decline:hover {background:var(--bdc); color:var(--text)}
.movie-poster {flex-shrink:0; width:180px; border-radius:12px; overflow:hidden; background:#1a1a1a; box-shadow:0 4px 12px rgba(0,0,0,0.3)}
.movie-poster img {width:100%; height:auto; display:block}
.player-info-wrapper {display:flex; gap:20px; margin-top:20px; padding:20px; background:var(--card-bg); border-radius:16px; flex-wrap:wrap}
@media (max-width:768px) {.movie-poster {width:120px}
 .player-info-wrapper {flex-direction:column; align-items:center; text-align:center}
 .movie-meta {justify-content:center; flex-wrap:wrap}
}
@media (max-width:768px) {.search-title {font-size:28px}
 .search-subtitle {font-size:16px; margin-bottom:30px}
 .search-input {padding:16px 24px 16px 56px; font-size:16px}
 .results-grid {grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px}
 .footer-content {flex-direction:column; text-align:center; align-items:center; justify-content:center}
 .footer-left {text-align:center; margin:0 auto}
 .footer-links {justify-content:center; text-align:center}
 .footer-column {text-align:center}
 .footer-bottom {text-align:center; justify-content:center}
 .movie-title {font-size:18px}
 .api-stats {bottom:8px; right:8px; font-size:9px; padding:4px 10px}
 .cookie-banner {flex-direction:column; text-align:center; padding:12px 16px}
 .cookie-text {font-size:12px}
 main {padding:30px 16px 60px}
 .header-content {justify-content:space-between}
 .header-actions {gap:8px}
 .theme-toggle {padding:6px 12px; font-size:16px}
 .btn-library {padding:8px 16px; font-size:12px}
}
