@charset "UTF-8";

:root {
    --bg-color: #0c0c0f;
    --bg-elevated: #141418;
    --border-color: #2a2a32;
    --accent-color: #00bcd4;
    --accent-soft: rgba(0, 188, 212, 0.12);
    --text-color: #f5f5f5;
    --muted-text-color: #a0a0b0;
    --error-color: #ff5252;
    --success-color: #7dd87d;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "SF Pro Display", "Roboto", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(12, 12, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 26px;
    border-radius: 999px;
    isolation: isolate;
    animation: floatPulse 6s ease-in-out infinite;
}

.logo-wrapper::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.35;
    filter: blur(12px);
    pointer-events: none;
    z-index: -1;
}

.brand-logo {
    position: relative;
    z-index: 1;
    height: 52px;
    width: auto;
    display: block;
}

.logo-img {
    display: block;
    height: 52px;
    width: auto;
    filter: drop-shadow(0 0 16px rgba(0, 200, 255, 0.65));
    transition: filter 0.4s ease, transform 0.4s ease;
}

.logo-wrapper:hover .logo-img {
    filter: drop-shadow(0 0 26px rgba(0, 242, 255, 0.9)) brightness(1.12);
    transform: scale(1.03);
}

.spark {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    filter: blur(0.5px);
    animation: sparkle 3.2s ease-in-out infinite;
    pointer-events: none;
}

.spark-1 { top: 8%; left: 12%; animation-delay: 0.2s; }
.spark-2 { top: 18%; right: 6%; animation-delay: 1s; }
.spark-3 { bottom: 12%; left: 8%; animation-delay: 0.7s; }
.spark-4 { bottom: 6%; right: 18%; animation-delay: 1.8s; }
.spark-5 { top: 46%; left: -4%; animation-delay: 2.4s; }
.spark-6 { top: 54%; right: -5%; animation-delay: 2.9s; }

.nav-search {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-search input[type="text"],
.hero form input[type="text"] {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--text-color);
    min-width: 220px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input[type="text"]:focus,
.hero form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.nav-search button,
.hero form button,
.primary-button {
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    background: var(--accent-color);
    color: #071216;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.nav-search button:hover,
.hero form button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.25);
}

.ghost-button {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ghost-button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

main {
    padding: 48px 0 80px;
}

.hero {
    padding: 64px 0 32px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
    gap: 32px;
}

.hero-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}




.hero-showcase {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 8px 0 16px;
}

.hero-showcase-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16 / 9;
    min-height: clamp(240px, 38vw, 520px);
    width: clamp(320px, 70vw, 1000px);
    background: #0b171f;
    transition: transform 0.3s ease;
}

.hero-showcase-card:hover {
    transform: translateY(-2px);
}

.hero-showcase-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.35s ease;
    opacity: 1;
}

.hero-showcase-card:hover img {
    transform: scale(1.04);
}

.hero-showcase-card figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(5, 14, 20, 0.65);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 8px 18px;
    border-radius: 999px;
    max-width: 92%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    transform: translateY(0);
}

.hero-showcase-card.is-transitioning img {
    opacity: 0;
    transform: scale(1.02);
}

.hero-showcase-card.is-transitioning figcaption {
    opacity: 0;
    transform: translateY(8px);
}

.hero-showcase-card.skeleton {
    background: var(--bg-elevated);
    border-style: dashed;
    animation: heroSkeletonPulse 1.4s ease-in-out infinite;
}

.hero-showcase-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0) 80%);
    animation: heroSkeletonShimmer 1.4s linear infinite;
}

@keyframes heroSkeletonPulse {
    0% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.65;
    }
    100% {
        opacity: 0.35;
    }
}

@keyframes heroSkeletonShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes floatPulse {
    0% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-6px) scale(1.05);
    }
    70% {
        transform: translateY(3px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes sparkle {
    0%,
    80%,
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
    25% {
        opacity: 1;
        transform: scale(1);
    }
    45% {
        opacity: 0.5;
        transform: scale(0.6);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-wrapper,
    .logo-wrapper::before,
    .spark,
    .contact-fab {
        animation: none !important;
    }

    .logo-wrapper::before,
    .logo-wrapper::after {
        opacity: 0.4;
    }

    .logo-wrapper:hover .logo-img,
    .fab-button:hover {
        transform: none;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--muted-text-color);
    max-width: 640px;
}

.hero form {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    flex-wrap: nowrap;
    align-items: stretch;
    background: rgba(7, 18, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 8px;
    box-shadow: var(--shadow-soft);
}

.hero form input[type="text"] {
    flex: 1;
    min-width: 0;
    font-size: 1.05rem;
    padding: 16px 20px;
}

.hero form button {
    min-height: 56px;
    padding: 0 30px;
    font-size: 1rem;
}

.site-footer {
    --footer-plugin-height: 400px;
    margin-top: 72px;
    padding: 64px 0 28px;
    background: radial-gradient(circle at 10% 10%, rgba(0, 188, 212, 0.25), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(0, 118, 255, 0.2), transparent 40%),
        linear-gradient(180deg, #070c14, #05070d 80%, #04060a);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
}

.footer-intro {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 420px;
    color: var(--muted-text-color);
}

.footer-intro h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.footer-intro p {
    margin-bottom: 12px;
}

.footer-intro ul {
    list-style: none;
    margin-top: 16px;
}

.footer-intro li {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-facebook {
    flex: 1 1 320px;
    min-width: 260px;
    display: flex;
    justify-content: flex-end;
}

.footer-facebook-card {
    flex: 1 1 320px;
    max-width: 820px;
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 12, 20, 0.9);
    padding: 14px 18px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    min-height: var(--footer-plugin-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-facebook-card .fb-page,
.footer-facebook-card .fb-page > span,
.footer-facebook-card {
    flex: 1 1 320px;
    max-width: 820px;
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 12, 20, 0.9);
    padding: 14px 18px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    min-height: var(--footer-plugin-height);
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    width: 100%;
}

.footer-gallery-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.footer-gallery-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-gallery-card figcaption {
    padding: 10px 12px;
    font-size: 0.92rem;
    color: #f5f5f5;
    min-height: 48px;
}

.footer-gallery-card--cta {
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: #f5f5f5;
}

.footer-gallery-thumb--cta {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
}
.footer-meta a:hover {
    color: var(--accent-color);
}

.contact-fab {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    width: 76px;
    border-radius: 24px;
    background: rgba(6, 14, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    animation: fabGlide 8s ease-in-out infinite;
    align-items: flex-end;
    transition: width 0.24s ease, padding 0.24s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.contact-fab-label {
    font-size: 0.9rem;
    color: var(--muted-text-color);
    letter-spacing: 0.02em;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, max-height 0.2s ease, transform 0.2s ease;
}

.contact-fab-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fab-button {
    border: none;
    border-radius: 999px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    box-shadow: none;
    background: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, width 0.22s ease, padding 0.22s ease, background 0.2s ease;
    cursor: pointer;
    width: 52px;
    min-height: 52px;
    justify-content: center;
    flex: 0 0 auto;
}

.fab-button svg {
    width: 20px;
    height: 20px;
}

.fab-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    flex: 0 0 38px;
    transform: translateX(5px);
}

.fab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.fab-messenger {
    background: linear-gradient(135deg, #0084ff, #00bcd4);
}

.fab-email {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
}

.fab-text {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.18s ease, max-width 0.22s ease, margin-left 0.18s ease;
    margin-left: 0;
}

.contact-fab:hover .contact-fab-label,
.contact-fab:focus-within .contact-fab-label {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
}

.contact-fab:hover .fab-button,
.contact-fab:focus-within .fab-button {
    width: 230px;
    justify-content: flex-start;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.contact-fab:hover .fab-text,
.contact-fab:focus-within .fab-text {
    opacity: 1;
    max-width: 180px;
    margin-left: 6px;
}

.contact-fab:hover,
.contact-fab:focus-within {
    width: 250px;
    padding: 14px 14px 12px;
}

.contact-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 60;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 18, 0.85);
    backdrop-filter: blur(10px);
}

.contact-modal__dialog {
    position: relative;
    width: min(520px, 100%);
    background: rgba(10, 16, 26, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    padding: 32px;
    z-index: 1;
}

.contact-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.contact-modal__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-modal__lead {
    color: var(--muted-text-color);
    font-size: 0.95rem;
}

.contact-modal__content label {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.contact-modal__content select,
.contact-modal__content textarea,
.contact-modal__content input[type="email"],
.contact-modal__content input[type="text"] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text-color);
    font: inherit;
    width: 100%;
}

.contact-modal__content select {
    color-scheme: dark;
}

.contact-modal__content select option {
    background: rgba(10, 16, 26, 0.97);
    color: var(--text-color);
}

.contact-modal__content textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-modal__intent {
    font-size: 0.9rem;
    color: var(--muted-text-color);
    min-height: 38px;
    display: flex;
    align-items: center;
}

.contact-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

.contact-modal__feedback {
    min-height: 20px;
    font-size: 0.9rem;
    color: var(--muted-text-color);
}

.contact-modal__feedback[data-state="success"] {
    color: var(--success-color);
}

.contact-modal__feedback[data-state="error"] {
    color: var(--error-color);
}

.contact-modal form.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

body.modal-open {
    overflow: hidden;
}

@keyframes fabGlide {
    0% {
        transform: translateY(0px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    }
    50% {
        transform: translateY(-6px);
        box-shadow: 0 28px 40px rgba(0, 0, 0, 0.35);
    }
    100% {
        transform: translateY(0px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    }
}

@media (max-width: 900px) {
    .site-footer .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-facebook-card {
        order: -1;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .hero form {
        flex-direction: column;
        border-radius: 24px;
        padding: 12px;
    }

    .hero form button {
        width: 100%;
    }

    .contact-fab {
        right: 16px;
        left: 16px;
        bottom: 20px;
        animation-duration: 10s;
    }

    .contact-modal {
        padding: 12px;
    }

    .contact-modal__dialog {
        padding: 24px;
    }
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: var(--shadow-soft);
}

.status-card {
    text-align: center;
}

.status-card.error {
    border-color: var(--error-color);
}

.status-card .status-details {
    margin-top: 8px;
    color: var(--muted-text-color);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.gallery-card {
    grid-column: span 7;
}

.info-card {
    grid-column: span 5;
}

.main-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.main-image img,
.main-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image video {
    background: #000;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumbnail-button {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0;
    background: none;
    cursor: pointer;
    flex: 0 0 auto;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.thumbnail-button img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-button:hover {
    transform: translateY(-2px);
}

.thumbnail-button.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.info-card h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-text-color);
    margin-bottom: 16px;
}

.info-headline {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.thumbnail-button.video img {
    filter: saturate(0.85);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.info-row.price-positive {
    color: var(--success-color);
    font-weight: 700;
}

.info-label {
    color: var(--muted-text-color);
    font-size: 0.9rem;
}

.section {
    margin-bottom: 40px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 12px 0 6px;
}

.admin-stats-row.admin-stats-row--compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 10px;
}

.admin-stat-tile {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.admin-stat-tile.tone-accent {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.16);
}

.admin-stat-label {
    font-size: 12px;
    color: var(--muted-text-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 4px;
}

.admin-stat-note {
    font-size: 12px;
    color: var(--muted-text-color);
    margin-top: 4px;
}

.admin-sales-line,
.admin-meta-line {
    margin: 6px 0;
    font-size: 0.95rem;
    color: var(--muted-text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-sales-line span {
    color: var(--text-color);
    font-weight: 700;
}

body.admin-page main {
    padding-top: 63px;
}

.section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.details-grid + .table-wrapper {
    margin-top: 12px;
}

.detail-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.detail-label {
    color: var(--muted-text-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-value {
    font-size: 1.1rem;
    margin-top: 4px;
}

.table-wrapper {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: var(--shadow-soft);
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table-wrapper thead {
    background: rgba(255, 255, 255, 0.04);
}

.table-wrapper th,
.table-wrapper td {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table-wrapper tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.placeholder-card {
    text-align: center;
    padding: 32px;
    border: 1px dashed var(--border-color);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.similar-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.similar-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.similar-card img {
    width: 88px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: #0e151c;
}

.similar-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.similar-title {
    font-weight: 700;
    line-height: 1.2;
}

.similar-sub {
    color: var(--muted-text-color);
    font-size: 0.9rem;
}

.media-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 999px;
}

.seo-section {
    margin-top: 28px;
}

.seo-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.seo-card h2 {
    font-size: 1.5rem;
}

.seo-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.seo-pill-grid article {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.seo-pill-grid h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.main-image video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.5);
}

.error-message {
    color: var(--error-color);
}

.fallback-message {
    text-align: center;
    padding: 80px 0;
}

@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .gallery-card,
    .info-card {
        grid-column: span 1;
    }

    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input[type="text"] {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 32px;
    }

    .hero {
        padding-top: 48px;
        gap: 24px;
    }

    .thumbnail-button img {
        width: 100px;
        height: 58px;
    }
}

.form-message {
    font-size: 0.85rem;
    color: var(--error-color);
    min-height: 1.2em;
    margin-top: 4px;
}

.form-message.success {
    color: var(--success-color);
}