/* =============================================
   ARGON TV — dedicated styles
   ============================================= */
.atv-page {
    --atv-red: #D32F2F;
    --atv-red-dark: #B71C1C;
    --atv-red-light: #EF5350;
    --atv-bg: #f3f3f3;
    background: var(--atv-bg);
}

/* Gallery head */
.atv-gallery-section {
    padding: 3.25rem 0 4.5rem;
}

.atv-page-head {
    text-align: center;
    margin-bottom: 2.85rem;
}

.atv-page-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 3.5vw, 2.05rem);
    font-weight: 900;
    color: #1A1A1A;
    letter-spacing: -0.02em;
}

.atv-page-title-line {
    display: block;
    width: 56px;
    height: 4px;
    margin: 0 auto 1rem;
    background: var(--atv-red);
    border-radius: 4px;
}

.atv-page-subtitle {
    margin: 0 auto;
    max-width: 520px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    line-height: 1.9;
}

/* Video grid */
.atv-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.85rem 1.5rem;
    margin-bottom: 2.85rem;
    width: 100%;
}

/* Card */
.atv-card {
    display: block;
    margin: 0;
}

.atv-card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.9rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 12px 40px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

.atv-card-link::before {
    content: "";
    position: absolute;
    inset-inline-start: 10px;
    bottom: -6px;
    width: 72%;
    height: 14px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(90deg, var(--atv-red) 0%, var(--atv-red-light) 55%, transparent 100%);
    opacity: 0.22;
    filter: blur(8px);
    z-index: -1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.atv-card-link:hover {
    transform: translateY(-10px);
    border-color: rgba(211, 47, 47, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 24px 60px rgba(0, 0, 0, 0.11),
        0 8px 24px rgba(211, 47, 47, 0.12);
}

.atv-card-link:hover::before {
    opacity: 0.42;
    transform: translateY(2px);
}

/* Thumbnail */
.atv-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 156px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(155deg, #ffffff 0%, #f7f7f7 50%, #efefef 100%);
    border: 1px solid rgba(0, 0, 0, 0.035);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.atv-card-media-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(211, 47, 47, 0.06) 0%, transparent 42%),
        radial-gradient(circle at 12% 88%, rgba(211, 47, 47, 0.04) 0%, transparent 38%),
        linear-gradient(165deg, #fcfcfc 0%, #f2f2f2 100%);
    transition: transform 0.5s ease;
}

.atv-card-deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.55;
    pointer-events: none;
}

.atv-card-deco svg {
    width: 100%;
    height: 100%;
}

.atv-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.atv-card-link:hover .atv-card-img {
    transform: scale(1.05);
}

.atv-card-link:hover .atv-card-media-bg {
    transform: scale(1.03);
}

.atv-card-media-accent {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 62%;
    height: 62%;
    border-inline-start: 4px solid var(--atv-red);
    border-bottom: 4px solid var(--atv-red);
    border-end-start-radius: 18px;
    box-shadow:
        -8px 8px 28px rgba(211, 47, 47, 0.22),
        inset 6px -6px 16px rgba(211, 47, 47, 0.08);
    pointer-events: none;
    z-index: 3;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.atv-card-link:hover .atv-card-media-accent {
    border-color: var(--atv-red-light);
    box-shadow:
        -10px 10px 32px rgba(211, 47, 47, 0.3),
        inset 6px -6px 18px rgba(211, 47, 47, 0.1);
}

.atv-card-play {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.06) 100%);
    transition: background 0.35s ease;
}

.atv-card-play i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff 0%, #f5f5f5 100%);
    color: var(--atv-red);
    font-size: 1.55rem;
    padding-inline-start: 3px;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.5),
        0 10px 28px rgba(0, 0, 0, 0.16);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.atv-card-link:hover .atv-card-play {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 20%, rgba(0, 0, 0, 0.12) 100%);
}

.atv-card-link:hover .atv-card-play i {
    transform: scale(1.1);
    box-shadow:
        0 0 0 5px rgba(211, 47, 47, 0.15),
        0 14px 36px rgba(211, 47, 47, 0.25);
}

.atv-card-duration {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    z-index: 5;
    padding: 0.28rem 0.65rem;
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    direction: ltr;
    letter-spacing: 0.03em;
}

/* Card footer */
.atv-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    margin-top: 0.95rem;
    padding: 0 0.2rem 0.1rem;
}

.atv-card-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--atv-red-light) 0%, var(--atv-red) 55%, var(--atv-red-dark) 100%);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 14px rgba(211, 47, 47, 0.38);
    transition: transform 0.3s ease;
}

.atv-card-link:hover .atv-card-badge {
    transform: scale(1.06);
}

.atv-card-title {
    flex: 1;
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.55;
    text-align: right;
    transition: color 0.25s ease;
}

.atv-card-link:hover .atv-card-title {
    color: var(--atv-red-dark);
}

/* Pagination */
.atv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    direction: rtl;
}

.atv-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    font-size: 0.84rem;
    font-weight: 700;
    color: #1A1A1A;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.atv-page-btn:hover:not(.atv-page-btn--disabled):not(.atv-page-btn--active) {
    border-color: rgba(211, 47, 47, 0.35);
    color: var(--atv-red);
    transform: translateY(-2px);
}

.atv-page-btn--active {
    background: var(--atv-red);
    border-color: var(--atv-red);
    color: #fff;
    box-shadow: 0 5px 16px rgba(211, 47, 47, 0.38);
}

.atv-page-btn--disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Watch page */
.atv-watch-page {
    background: #f5f5f5;
    min-height: 60vh;
}

.atv-watch-hero {
    position: relative;
    padding: 2rem 0 4.5rem;
    overflow: hidden;
}

.atv-watch-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.atv-watch-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.atv-watch-hero-glow--1 {
    width: 400px;
    height: 400px;
    top: -10%;
    right: -8%;
    background: rgba(211, 47, 47, 0.06);
}

.atv-watch-hero-glow--2 {
    width: 320px;
    height: 320px;
    bottom: -15%;
    left: -10%;
    background: rgba(0, 0, 0, 0.04);
}

.atv-watch-inner {
    position: relative;
    z-index: 1;
}

.atv-watch-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
}

.atv-watch-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.atv-watch-breadcrumb a:hover {
    color: var(--atv-red);
}

.atv-watch-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.atv-player-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    margin-bottom: 1.75rem;
}

.atv-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
}

.atv-watch-info-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.atv-watch-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--atv-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
}

.atv-watch-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    direction: ltr;
}

.atv-watch-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.25rem, 2.8vw, 1.65rem);
    font-weight: 900;
    color: #1A1A1A;
    line-height: 1.4;
}

.atv-watch-title-line {
    display: block;
    width: min(180px, 40%);
    height: 3px;
    margin-bottom: 1.15rem;
    background: linear-gradient(90deg, var(--atv-red) 0%, var(--atv-red-light) 70%, transparent 100%);
    border-radius: 3px;
}

.atv-watch-desc {
    margin: 0 0 1.5rem;
    max-width: 720px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    line-height: 2;
    text-align: justify;
}

.atv-watch-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    font-size: 0.82rem;
    font-weight: 700;
    color: #1A1A1A;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.atv-watch-back:hover {
    color: var(--atv-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.atv-watch-sidebar {
    position: sticky;
    top: 100px;
    padding: 1.35rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.atv-related-title {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1A1A1A;
}

.atv-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.atv-related-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.atv-related-item:hover {
    background: rgba(211, 47, 47, 0.04);
}

.atv-related-thumb {
    position: relative;
    flex-shrink: 0;
    width: 88px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff, #f0f0f0);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atv-related-thumb-accent {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 50%;
    height: 50%;
    border-inline-start: 2px solid var(--atv-red);
    border-bottom: 2px solid var(--atv-red);
    border-end-start-radius: 10px;
}

.atv-related-thumb i {
    font-size: 1.1rem;
    color: var(--atv-red);
    opacity: 0.7;
}

.atv-related-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.45;
    margin-bottom: 0.15rem;
}

.atv-related-time {
    font-size: 0.68rem;
    font-weight: 600;
    color: #888;
    direction: ltr;
}

@media (max-width: 991.98px) {
    .atv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.35rem;
    }

    .atv-watch-layout {
        grid-template-columns: 1fr;
    }

    .atv-watch-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .atv-gallery-section {
        padding: 2.25rem 0 3.5rem;
    }

    .atv-grid {
        grid-template-columns: 1fr !important;
        max-width: 400px;
        margin-inline: auto;
    }
}
