/* ===== BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-black: #0a0a0a;
    --bg-panel: #131313;
    --bg-card: #171717;
    --border-color: #262626;
    --red: #e11d2e;
    --red-dark: #7a1018;
    --text-white: #f5f5f5;
    --text-gray: #9a9a9a;
    --text-gray-dim: #6b6b6b;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
}

.hobby {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 50px clamp(20px, 5vw, 80px) 60px;
}

/* ===== HERO ===== */
.hero-hobby {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.hero-hobby-text h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: 1px;
    color: var(--text-white);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.1s;
}

.hero-hobby-text h1 .accent {
    color: var(--red);
    text-shadow: 0 0 40px rgba(225,29,46,0.35);
}

.hero-hobby-text > p {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 300;
    max-width: 400px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.35s;
}

.hero-quote {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 2px solid var(--red);
    padding-left: 16px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.55s;
}

.hero-quote .quote-mark {
    font-family: var(--font-display);
    font-size: 34px;
    color: var(--red);
    line-height: 0.6;
}

.hero-quote p {
    font-size: 14.5px;
    color: var(--text-gray);
    font-style: italic;
    max-width: 320px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== HERO IMAGE ===== */
.hero-hobby-image {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeScaleIn 1s ease forwards 0.3s;
}

.hero-hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
}

.hero-hobby-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,10,10,0.5) 0%, transparent 40%);
    pointer-events: none;
}

@keyframes fadeScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
    .hero-hobby {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-hobby-text > p,
    .hero-quote p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-quote {
        justify-content: center;
        text-align: left;
    }
    .hero-hobby-image {
        height: 220px;
    }
}

/* ===== PANEL SHELL ===== */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.panel.is-visible,
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 1.5px;
    color: var(--text-white);
    margin-bottom: 26px;
}

.title-icon {
    color: var(--red);
    font-size: 16px;
}

/* ===== SPOTIFY EMBED ===== */
.spotify-embed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spotify-embed iframe {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.panel.is-visible .spotify-embed iframe:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.panel.is-visible .spotify-embed iframe:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.panel.is-visible .spotify-embed iframe:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.panel.is-visible .spotify-embed iframe:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.panel.is-visible .spotify-embed iframe:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

/* ===== PODCAST GRID ===== */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.podcast-card {
    position: relative;
    display: block;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    text-decoration: none;
    cursor: pointer;
}

.podcast-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,9,13,0.15) 0%, rgba(9,9,13,0.9) 90%);
    transition: background 0.4s ease;
    z-index: 1;
}

.podcast-card:hover::before {
    background: linear-gradient(180deg, rgba(225,29,46,0.25) 0%, rgba(9,9,13,0.92) 90%);
}

.podcast-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 22px;
    transition: transform 0.4s ease;
}

.podcast-card:hover .podcast-overlay {
    transform: translateY(-4px);
}

.podcast-info h4 {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 1.5px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.podcast-info p {
    font-size: 13px;
    color: var(--text-gray);
    max-width: 280px;
}

.play-btn {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225,29,46,0.15);
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 50%;
    font-size: 14px;
    transition: 0.3s ease;
}

.podcast-card:hover .play-btn {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 20px rgba(225,29,46,0.5);
    transform: scale(1.1);
}

/* Появление карточек волной */
.reveal-card {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.podcast-card:nth-child(1).is-visible { transition-delay: 0s; }
.podcast-card:nth-child(2).is-visible { transition-delay: 0.15s; }

@media (max-width: 700px) {
    .podcast-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== YOUTUBE GRID ===== */
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.youtube-card {
    position: relative;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
}

.youtube-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,9,13,0.1) 0%, rgba(9,9,13,0.95) 88%);
    transition: background 0.4s ease;
    z-index: 1;
}

.youtube-card:hover::before {
    background: linear-gradient(180deg, rgba(225,29,46,0.2) 0%, rgba(9,9,13,0.95) 88%);
}

.youtube-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    transition: transform 0.4s ease;
}

.youtube-card:hover .youtube-overlay {
    transform: translateY(-6px);
}

.youtube-overlay h4 {
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: 1.5px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.youtube-overlay p {
    font-size: 12.5px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: rgba(225,29,46,0.15);
    border: 1px solid var(--red);
    color: var(--red);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 30px;
    transition: 0.3s ease;
}

.yt-btn:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 20px rgba(225,29,46,0.5);
    transform: translateY(-2px);
}

.youtube-card-noimg {
    background: linear-gradient(145deg, #1c1c1c, #0d0d0d);
}

.youtube-card:nth-child(1).reveal-card.is-visible { transition-delay: 0s; }
.youtube-card:nth-child(2).reveal-card.is-visible { transition-delay: 0.15s; }
.youtube-card:nth-child(3).reveal-card.is-visible { transition-delay: 0.3s; }

@media (max-width: 1000px) {
    .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .youtube-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== GAMES GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.game-card {
    width: 100%;
    position: relative;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center top;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}

.game-card-cod {
    background-position: center 20%;
}

@media (max-width: 900px) {
    .game-card-cod {
        background-position: center 15%;
    }
}

.game-card:hover {
    transform: translateY(-8px);
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,9,13,0) 55%, rgba(9,9,13,0.95) 100%);
    z-index: 1;
}

.game-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px 20px;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--text-white);
    text-align: center;
}

.game-card:nth-child(1).reveal-card.is-visible { transition-delay: 0s; }
.game-card:nth-child(2).reveal-card.is-visible { transition-delay: 0.15s; }
.game-card:nth-child(3).reveal-card.is-visible { transition-delay: 0.3s; }

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ДРУГИЕ УВЛЕЧЕНИЯ ===== */
.other-hobby-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.other-hobby-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.other-hobby-card:hover {
    transform: translateY(-6px);
    border-color: rgba(225,29,46,0.4);
    background: rgba(225,29,46,0.06);
}

.other-hobby-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225,29,46,0.12);
    border: 1px solid rgba(225,29,46,0.3);
    border-radius: 12px;
    font-size: 18px;
}

.other-hobby-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 6px;
}

.other-hobby-card p {
    font-size: 12px;
    color: var(--text-gray-dim);
    line-height: 1.5;
}

.other-hobby-card:nth-child(1).reveal-card.is-visible { transition-delay: 0s; }
.other-hobby-card:nth-child(2).reveal-card.is-visible { transition-delay: 0.1s; }
.other-hobby-card:nth-child(3).reveal-card.is-visible { transition-delay: 0.2s; }
.other-hobby-card:nth-child(4).reveal-card.is-visible { transition-delay: 0.3s; }

@media (max-width: 1000px) {
    .other-hobby-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .other-hobby-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== BOTTOM BAR (общий прогресс сайта) ===== */
.bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 30px;
    margin: 30px 0;
}

.site-progress-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.site-progress-track {
    flex-grow: 1;
    max-width: 400px;
    height: 8px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.site-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    box-shadow: 0 0 12px rgba(225,29,46,0.5);
    transition: width 1.3s cubic-bezier(.25,.8,.35,1) 0.3s;
}

.bottom-bar.is-visible .site-progress-fill {
    width: var(--fill-width);
}

.site-progress-percent {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-white);
    min-width: 44px;
    text-align: right;
}

@media (max-width: 600px) {
    .bottom-bar {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .site-progress-track {
        order: 3;
        width: 100%;
        max-width: none;
    }
}

/* ===== FOOTER SOCIAL ===== */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 4px 10px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-social span {
    font-size: 12.5px;
    color: var(--text-gray-dim);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.social-icons a:hover {
    color: var(--red);
}

@media (max-width: 600px) {
    .footer-social {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .panel, .reveal-up, .reveal-card, .bottom-bar,
    .hero-hobby-text h1, .hero-hobby-text > p,
    .hero-quote, .hero-hobby-image, .spotify-embed iframe {
        opacity: 1 !important;
        transform: none !important;
    }
    .site-progress-fill,
    .skill-fill,
    .bar-fill {
        width: var(--fill-width) !important;
    }
}