:root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --surface-hover: #252525;
    --border: #2a2a2a;
    --text: #e8e8e8;
    --text-muted: #888;
    --accent: #FF6B35;
    --accent-hover: #ff8555;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,.4);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.5px;
}

.logo small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 14px;
}

.tagline {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 13px;
}

/* Main */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}

/* Intro text */
.intro-section {
    max-width: 700px;
    margin: 0 auto 32px;
    text-align: center;
}

.intro-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Player */
.player-section {
    margin-bottom: 40px;
}

.player-container {
    position: relative;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.player-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.5) 100%);
    transition: opacity .4s;
    pointer-events: none;
}

.player-overlay.hidden {
    opacity: 0;
}

.overlay-content {
    text-align: center;
    padding: 40px;
}

.overlay-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--accent), #ffaa55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Player info bar */
.player-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px 0;
    gap: 16px;
}

.video-meta h1 {
    font-size: 1.3rem;
    font-weight: 700;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.stat svg {
    opacity: .6;
}

/* Card views */
.card-views-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 4px;
}

.card-views-row svg {
    opacity: .5;
}

.video-date {
    display: none;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all .2s;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border);
}

.like-btn:hover {
    background: rgba(255,255,255,.08);
    border-color: var(--text-muted);
}

.like-btn.liked {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
}

.like-btn .heart-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform .2s;
}

.like-btn.liked .heart-icon {
    fill: #fff;
    stroke: #fff;
    animation: heartPop .3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-label {
    font-weight: 500;
}

.like-count {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Videos grid */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all .25s;
    border: 1px solid var(--border);
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(255,107,53,.15);
}

.video-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #222;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.video-card:hover .card-thumb img {
    transform: scale(1.05);
}

.card-thumb .play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
    transition: background .2s;
}

.video-card:hover .play-badge {
    background: rgba(0,0,0,.15);
}

.play-badge svg {
    width: 48px;
    height: 48px;
    fill: white;
    opacity: .9;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

.card-body {
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 3px;
}

.card-like {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all .2s;
    font-family: inherit;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.card-like:hover {
    background: rgba(255,255,255,.06);
    border-color: var(--text-muted);
    color: var(--text);
}

.card-like.liked {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
}

.card-like svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.card-like.liked svg {
    fill: #fff;
    stroke: #fff;
}

/* Loading / Empty */
.loading, .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-partner {
    text-align: center;
}

.footer-mention {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 12px;
    max-width: 360px;
}

.footer-logo {
    height: 60px;
    width: auto;
    opacity: .85;
    transition: opacity .2s;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-credit {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner { padding: 10px 16px; }
    main { padding: 16px; }
    .videos-grid { grid-template-columns: 1fr; }
    .overlay-content h2 { font-size: 1.8rem; }
    .player-info { flex-direction: column; align-items: flex-start; }
    .video-stats { width: 100%; justify-content: flex-start; }
    .logo-text { font-size: 14px; }
    .logo small { font-size: 12px; }
    .tagline { display: none; }
}
