/* style.css */
:root {
    --bg-color: #0f0f11;
    --card-bg: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent: #ff2a5f;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: #000;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header h1 a { color: var(--accent); font-weight: 800; font-size: 24px; }
.site-header nav a { color: var(--text-primary); margin-left: 20px; font-size: 14px; transition: color 0.3s; }
.site-header nav a:hover { color: var(--accent); }

/* Homepage Grid */
.section-title { font-size: 20px; margin-bottom: 20px; color: #fff; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Video Cards */
.video-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.video-card:hover { transform: translateY(-5px); }

.thumbnail {
    display: block;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}
.thumbnail img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}
.thumbnail:hover .play-btn { opacity: 1; }

.video-title {
    font-size: 14px;
    padding: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-title a:hover { color: var(--accent); }

/* Player Page */
.player-container { max-width: 960px; margin: 0 auto; }
.player-title { font-size: 22px; margin-bottom: 15px; }
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.video-details {
    margin-top: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}
.category-tag { background: #333; padding: 4px 10px; border-radius: 4px; color: #fff; }

/* Footer */
footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid #333;
    margin-top: 50px;
}