body { transition: opacity ease-in 0.2s; } 
body[unresolved] { opacity: 0; display: block; overflow: hidden; position: relative; } 

:root {
    --bg-body: #fdfdfd; --bg-header: #fdfdfd; --bg-auth: #f5f5f5; --bg-footer: #f5f5f5; --bg-card: #ffffff;
    --text-main: #1a1a1a; --text-card: #333333; --text-footer: #444444; --border-color: #e0e0e0;
    --accent: #ff4500; --accent-glow: rgba(255, 69, 0, 0.1); --shadow-card: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-header: 0 2px 10px rgba(0,0,0,0.03);
}
body.dark-mode {
    --bg-body: #050505; --bg-header: #000000; --bg-auth: #0a0a0a; --bg-footer: #0a0a0a; --bg-card: #111111;
    --text-main: #f0f0f0; --text-card: #cccccc; --text-footer: #888888; --border-color: #222222;
    --shadow-card: 0 4px 20px rgba(0,0,0,0.5); --shadow-header: 0 2px 10px rgba(0,0,0,0.3);
}
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background-color: var(--bg-body); color: var(--text-main); margin: 0; overflow-x: hidden; transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease; }

header { padding: 15px; text-align: center; background: var(--bg-header); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-header); position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 70px; transition: 0.4s; gap: 15px; }
@media (min-width: 768px) { header { flex-direction: row; padding: 30px; gap: 0; } .controls-panel { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); } }
.site-logo { max-height: 60px; display: block; }
.controls-panel { display: flex; gap: 10px; align-items: center; }
.selector-common { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--accent); padding: 6px 10px; border-radius: 6px; cursor: pointer; outline: none; font-size: 0.75rem; font-weight: bold; transition: 0.3s; }
.selector-common:hover { box-shadow: 0 0 10px var(--accent-glow); }

#auth-ui-wrapper { background: var(--bg-auth); border-bottom: 1px solid var(--border-color); padding: 12px 25px; display: flex; justify-content: flex-end; align-items: center; min-height: 50px; transition: 0.4s; }
#auth-ui { display: flex; align-items: center; gap: 12px; }

.video-container {
width: 100%;       
aspect-ratio: 16/9; 
}

.video-container iframe {
width: 100%;       
height: 100%;      
border: none;
}

.nav-btn { background: var(--accent); color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 0.85rem; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; height: 36px; box-sizing: border-box; text-decoration: none; }

.content { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.section-title { color: var(--accent); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; border-left: 4px solid var(--accent); padding-left: 15px; }

.iframe-container { display: flex; justify-content: center; width: 100%; margin-bottom: 50px; }
iframe { max-width: 100%; border-radius: 15px; border: 2px solid var(--accent); box-shadow: 0 0 20px var(--accent-glow); background: #000; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.project-card { background: var(--bg-card); padding: 30px; border-radius: 15px; border: 1px solid var(--border-color); transition: 0.3s; position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; box-shadow: var(--shadow-card); }
.project-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.project-card h3 { color: var(--text-main); margin: 0 0 15px 0; font-size: 1.5rem; padding-right: 35px; }
.project-card p { flex-grow: 1; margin-bottom: 25px; line-height: 1.5; color: var(--text-card); font-size: 0.95rem; }

.fav-btn { position: absolute; top: 25px; right: 20px; background: none; border: none; color: #ccc; font-size: 1.6rem; cursor: pointer; transition: 0.3s; padding: 0; line-height: 1; }
.fav-btn.active { color: var(--accent); }
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn { flex: 1; padding: 12px; text-align: center; border-radius: 8px; text-decoration: none; color: #fff; font-weight: bold; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; border: 1px solid transparent; text-transform: uppercase; }
.play-btn { background: rgba(61, 220, 132, 0.1); border-color: #3ddc84; color: #3ddc84; }
.apple-btn { background: rgba(0, 122, 255, 0.1); border-color: #007aff; color: #007aff; }
.web-btn { background: rgba(255, 69, 0, 0.1); border-color: var(--accent); color: var(--accent); }

footer { text-align: center; padding: 60px 20px; background: var(--bg-footer); margin-top: 50px; border-top: 1px solid var(--border-color); transition: 0.4s; }
.support-btn { display: inline-block; padding: 14px 30px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 50px; font-weight: bold; margin-bottom: 30px; transition: 0.3s; font-size: 1rem; }
.yt-icon { color: #ff0000; font-size: 2.5rem; vertical-align: middle; }
.inst-logo { width: 40px; border-radius: 10px; vertical-align: middle; }
.github-icon { color: var(--text-main); font-size: 2.5rem; vertical-align: middle; }
.policy-btn-wrapper { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 25px; }
.policy-btn { color: var(--accent); text-decoration: none; font-weight: bold; font-size: 0.85rem; border: 1px solid var(--border-color); padding: 8px 18px; border-radius: 50px; transition: 0.3s; background: var(--bg-card); }

.star-rating { direction: rtl; display: inline-block; cursor: pointer; }
.star-rating input { display: none; }
.star-rating label { font-size: 30px; color: #ccc; transition: 0.3s; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: #ffcc00; }
