@import url('https://googleapis.com');

:root {
    --bg-dark: #0f1115;       /* Fundal închis catifelat */
    --surface-dark: #161a22;  /* Suprafața componentelor electronice */
    --border-color: #242b35;  /* Linii fine de demarcație */
    --accent-neon: #ff6b81;   /* Accent roz-chihlimbar stins */
    --accent-cyan: #4cd137;   /* Verde-cyan pentru detalii tehnice */
    --text-main: #f5f6fa;     /* Text principal curat */
    --text-muted: #7f8fa6;    /* Text secundar */
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Antet Modern-Retro */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, var(--text-main), var(--accent-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    background-color: var(--surface-dark);
}

/* Player Video Premium Mat */
.tv-container {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tv-screen {
    background: #000;
    aspect-ratio: 16 / 9;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.tv-screen iframe, .tv-screen video {
    width: 100%;
    height: 100%;
    border: none;
}

.video-details {
    margin-top: 20px;
    padding: 5px 10px;
}

.video-details h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.meta-info {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.video-details p.desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Grid Coperți Verticale Slate */
.grid-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: -0.3px;
}

.covers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.anime-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.poster-wrapper {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.year-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(4px);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.anime-info {
    padding: 12px 4px 0 4px;
}

.anime-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-info .origin-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Efecte de Hover fine */
.anime-card:hover .poster-wrapper {
    transform: translateY(-6px);
    border-color: var(--accent-neon);
    box-shadow: 0 12px 24px rgba(255, 107, 129, 0.15);
}

.anime-card:hover .poster-wrapper img {
    transform: scale(1.04);
}

.anime-card:hover h3 {
    color: var(--accent-neon);
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; text-align: center; }
    .covers-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
}
