/* --- Global Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- RENK PALETİ --- */
    --bg-dark: #171a21;
    --bg-light: #283a5ac9;
    --primary-color: #00bcd4;
    --secondary-color: #007bff;
    --hover-border: rgba(255, 255, 255, 0.5);
    --hover-shadow: rgba(255, 255, 255, 0.1);
    --text-light: #f0f0f0;
    --text-dark: #c0c0c0;
    --esport-accent: var(--primary-color);

    /* Hero Section Carousel Değişkenleri */
    --slide-w: 60vw;
    --visible-side: 0.15;
    --gap: 20px;
    --shift-amount: calc( (var(--slide-w) * (1 - var(--visible-side))) + var(--gap) );
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 50px 2.5%;
    width: 100%;
    overflow: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}


/* --- Utility & Animation Classes --- */
.fade-in-load {
    opacity: 0;
    animation: fadeInPage 1s ease-out 0.2s forwards;
}
@keyframes fadeInPage {
    to { opacity: 1; }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transition: width 0.6s ease-in-out, left 0.6s ease-in-out;
}

.section-title.animate::after {
    width: 100%;
    left: 0;
}

/* BUTONLAR */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.4);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

/* KART TEMASI */
.game-card, .news-card, .cloud-card, .tournament-card, .server-card, .video-slide {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.game-card:hover, .news-card:hover, .cloud-card:hover, .server-card:hover, .video-slide:hover {
    transform: translateY(-8px);
    border-color: var(--hover-border);
    box-shadow: 0 15px 30px var(--hover-shadow);
}


/* --- 1. Hero Section (Slider) --- */
#hero {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    padding: 0;
}

#games {
    padding-top: 15px; 
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--slide-w);
    height: 90%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    background-image: linear-gradient(to right, rgba(23, 26, 33, 0.9) 0%, rgba(23, 26, 33, 0.5) 40%, transparent 100%), var(--background-image);
}

.hero-slide.no-transition {
    transition: none !important;
}

.hero-slide.active {
    transform: translate(-50%, -50%) translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
}

.hero-slide.prev {
    transform: translate(-50%, -50%) translateX(calc(-1 * var(--shift-amount))) scale(0.95);
    opacity: 0.25;
    z-index: 2;
}

.hero-slide.next {
    transform: translate(-50%, -50%) translateX(var(--shift-amount)) scale(0.95);
    opacity: 0.25;
    z-index: 2;
}

.hero-slide .hero-content {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transition-delay: 0.4s;
}

.hero-content {
    position: relative;
    width: 50%;
    text-align: left;
    color: var(--text-light);
    background: transparent;
    padding: 25px 35px 25px 80px;
    z-index: 4;
}

.hero-slide h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-slide p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hero-content .btn:nth-of-type(2) {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-dark);
    box-shadow: none;
}

.hero-content .btn:nth-of-type(2):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(0, 188, 212, 0.1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: calc( (100% - var(--slide-w)) / 2 - 25px );
}

.slider-btn.next {
    right: calc( (100% - var(--slide-w)) / 2 - 25px );
}

.hero-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
}

.pagination-dot {
    width: 25px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.pagination-dot.active {
    background-color: var(--text-light);
    transform: scaleY(1.5);
}


@media (max-width: 1200px) {
    :root {
        --slide-w: 75vw;
        --shift-amount: calc( (var(--slide-w) * (1 - var(--visible-side))) + var(--gap) );
    }
}

@media (max-width: 768px) {
    :root {
        --slide-w: 90vw;
        --visible-side: 0.08;
        --shift-amount: calc( (var(--slide-w) * (1 - var(--visible-side))) + var(--gap) );
    }
    #hero {
        height: 50vh;
    }

    .hero-content {
        width: 90%;
        padding: 15px 20px;
        text-align: center;
    }

    .hero-slide h1 {
        font-size: 1.8rem;
    }
    .hero-slide p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    .slider-btn.prev { left: 5px; }
    .slider-btn.next { right: 5px; }

    .hero-pagination {
        bottom: 10px;
        gap: 8px;
    }
    .pagination-dot {
        width: 18px;
    }
}


/* --- 2. Games Section (Video) --- */

.video-slider-wrapper {
    position: relative;
    overflow: hidden;
    /* FIX 2b: Add vertical padding to prevent video cards clipping on hover */
    padding: 35px 60px;
}

.video-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 90px;
    width: 100%;
}

.video-slide {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 0 0 100%;
    min-width: 100%;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin: 0;
    overflow: hidden;
}

.video-player {
    flex: 0 0 60%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.game-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.game-video::-webkit-media-controls-panel {
    background-color: rgba(23, 26, 33, 0.8) !important;
    color: var(--text-light) !important;
}
.game-video::-webkit-media-controls-play-button {
    color: var(--primary-color) !important;
}
.game-video::-webkit-media-controls-current-time-display,
.game-video::-webkit-media-controls-time-remaining-display,
.game-video::-webkit-media-controls-mute-button {
    color: var(--text-light) !important;
}
.game-video::-webkit-media-controls-timeline {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 5px !important;
}
.game-video::-webkit-media-controls-volume-slider-container {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 5px !important;
}

.video-player .slider-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.video-description {
    flex: 1;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.video-description p {
    max-width: 90%;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-all;
}

.video-desc-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    display: block;
    max-width: 90%;
}

.video-description h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.video-description p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.video-slider-wrapper .slider-btn {
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}
.video-slider-wrapper .slider-btn.prev {
    left: 10px;
}
.video-slider-wrapper .slider-btn.next {
    right: 10px;
}

.video-pagination {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    margin-top: 10px;
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    gap: 10px;
}


/* --- 2.1. Infinite Image Carousel --- */
#carousel {
    padding: 30px 0;
    background-color: var(--bg-light);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.carousel-track {
    display: flex;
    width: max-content;
    margin-bottom: 20px;
}
.carousel-track.row-1 {
    animation: scrollLeft 20s linear infinite;
}
.carousel-track.row-2 {
    animation: scrollRight 20s linear infinite;
}
.carousel-track:hover {
    animation-play-state: paused;
}
.carousel-track a {
    display: block;
    padding: 0 10px;
    transition: transform 0.3s ease;
}
.carousel-track a:hover {
    transform: scale(1.05);
}

/* Carousel media-placeholder (карточка картинки) */
.carousel-track .media-placeholder {
    width: auto;
    height: 210px;
    border-radius: 8px;
    position: relative;
    display: block;
    background-color: var(--bg-light);
    overflow: hidden;

    /* добавлено, чтобы рамка вела себя как у остальных карт */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* hover рамка + тень, цвет как у других карточек */
.carousel-track a:hover .media-placeholder {
    border-color: var(--hover-border);
    box-shadow: 0 15px 30px var(--hover-shadow);
}

/* Carousel shimmer efekti */
.carousel-track .media-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer-animation 2s infinite;
    z-index: 1;
}

/* Carousel loaded olduğunda shimmer'ı kaldır */
.carousel-track .media-placeholder.loaded::before {
    display: none;
}

/* Carousel resimleri için özel stil */
.carousel-track .media-placeholder img {
    position: static !important;
    width: auto !important;
    height: 210px !important;
    border-radius: 8px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
}

.carousel-track .media-placeholder img.loaded {
    opacity: 1;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* --- 2.2. Popular Games --- */

.horizontal-scroll-wrapper {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-dark);
    padding-top: 35px;
    padding-bottom: 15px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.game-grid {
    display: flex;
    flex-wrap: nowrap;
}
.game-card {
    flex: 0 0 calc((100% - (5 * 20px)) / 6);
    margin-right: 20px;
    z-index: 1;
}
.game-card:last-child {
    margin-right: 0;
}

#popular-games .game-card:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
    border-color: #ffffff;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4);
}

#popular-games .game-card img {
    width: 120%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: filter 0.4s ease;
}

#popular-games .game-card:hover img {
    filter: brightness(0.8);
}

.game-card .card-content {
    padding: 15px;
}
.game-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-type {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.download-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
}

/* --- 2.3. Supported Servers --- */
.server-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.server-card {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

/* Server resim placeholder */
.server-card .server-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.server-card .server-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.server-card .server-img-placeholder img.loaded {
    opacity: 1;
}

/* Placeholder loaded olduğunda resmi göster */
.server-card .server-img-placeholder.loaded {
    transition: opacity 0.4s ease-in-out;
}

/* Video stili */
.server-card .hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease-in-out;
}

/* Hover efektleri */
.server-card:hover .server-img-placeholder {
    opacity: 0;
}

.server-card:hover .hover-video {
    opacity: 1;
}

/* --- 3. News Section --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card .card-content {
    padding: 20px;
}
.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.news-card p {
    color: var(--text-dark);
}

/* --- 4. Tournament Section --- */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.tournament-card {
    background: linear-gradient(145deg, var(--bg-light), rgba(39, 57, 90, 0.7));
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.tournament-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--hover-border);
    box-shadow: 0 15px 30px var(--hover-shadow), 0 0 10px rgba(255, 255, 255, 0.1);
}
.card-image {
    position: relative;
}
.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: saturate(1.2);
}
.tournament-card .card-content {
    padding: 25px;
}
.tournament-card h3 {
    font-size: 1.6rem;
    color: var(--esport-accent);
    font-weight: 700;
    margin-bottom: 10px;
}
.details {
    margin: 10px 0;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.chip {
    background: rgba(0, 188, 212, 0.15);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}
.tourney-btn {
    width: 100%;
    text-align: center;
    background: var(--esport-accent);
    border-color: var(--esport-accent);
    color: var(--bg-dark);
}
.tourney-btn:hover {
    background: transparent;
    color: var(--esport-accent);
    box-shadow: 0 5px 15px var(--hover-shadow);
}

/* --- 5. Cloud Section --- */
.cloud-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cloud-card {
    padding: 25px;
    text-align: center;
}
.cloud-card img {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}
.cloud-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.cloud-card p {
    color: var(--text-dark);
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .news-grid, .cloud-grid { grid-template-columns: repeat(2, 1fr); }
    .server-grid, .tournament-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .video-slider-wrapper {
        padding: 35px 45px;
    }
    .video-slider-wrapper .slider-btn.prev {
        left: 5px;
    }
    .video-slider-wrapper .slider-btn.next {
        right: 5px;
    }
}

@media (max-width: 768px) {
    .server-grid, .tournament-grid { grid-template-columns: 1fr; }
    .news-grid, .cloud-grid { grid-template-columns: 1fr; }

    .game-card {
        flex: 0 0 240px;
    }

    .video-slide { flex-direction: column; }            /* уже есть — оставляем для контекста */

  .video-player {
    flex: 0 0 auto;           /* убираем 60% высоты */
    width: 100%;
    height: auto;             /* пусть растёт по содержимому */
    aspect-ratio: 16 / 9;     /* строгая пропорция */
    overflow: hidden;
  }

  .game-video {
    width: 100%;
    height: auto;             /* не растягиваем по высоте */
    aspect-ratio: 16 / 9;
    object-fit: contain;      /* ничего не обрезаем, без «чёрных» вылезаний */
    display: block;
  }

  /* опционально: уменьшить отступы, если карта кажется «тяжёлой» по вертикали */
  .video-slide { padding: 16px; gap: 16px; }
  .video-desc-image { margin-bottom: 12px; }
}

@media (max-width: 500px) {
    section {
        padding: 30px 1.5%;
    }
    
    .video-slider-wrapper {
        padding: 35px 0;
    }
    .video-slider-wrapper .slider-btn {
        top: 25vw;
        transform: translateY(-50%);
        left: 10px;
        width: 35px;
        height: 35px;
    }
    .video-slider-wrapper .slider-btn.next {
        right: 10px;
        left: auto;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header .see-all {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-header .see-all:hover {
    color: var(--primary-color);
}

/* --- Placeholder & Shimmer Effect --- */

.media-placeholder {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: var(--bg-light);
    transition: background-color 0.4s;
}

/* Cloud icons özel transparan bg */
#cloud-gaming .cloud-card .media-placeholder {
    background-color: transparent !important;
}

/* Cloud icons shimmer özel renk */
#cloud-gaming .cloud-card .media-placeholder::before {
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(0, 188, 212, 0.1) 50%, 
        rgba(255, 255, 255, 0) 100%
    ) !important;
}

@keyframes shimmer-animation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.media-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer-animation 2s infinite;
    z-index: 1;
    pointer-events: none;
}

/* shimmer hide on load */
.media-placeholder.loaded::before,
#cloud-gaming .cloud-card .media-placeholder.loaded::before {
    animation: none !important;
    opacity: 0 !important;
    display: none !important;
}

/* Resim stilleri */
.media-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
}

/* Resim yüklendiğinde göster */
.media-placeholder img.loaded {
    opacity: 1 !important;
}

/* Placeholder loaded olduğunda arka planı kaldır */
.media-placeholder.loaded {
    background-color: transparent !important;
}

/* Cloud icons için özel object-fit */
#cloud-gaming .cloud-card .media-placeholder img {
    object-fit: contain !important;
    position: absolute !important;
}

/* Video placeholder shimmer */
.placeholder-shimmer {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
}

.placeholder-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer-animation 2s infinite;
    z-index: 1;
}

/* === MOBILE ONLY FIX: buttons centered over video + "See all" under title === */
@media (max-width: 768px) {
  /* 1) Title centered; "See all" directly below it */
  .section-header, .video-header {
    display: flex !important;
    flex-direction: column !important;   /* title first, then "See all" */
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    position: relative !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }
  .section-title, .video-title {
    position: static !important;
    margin: 0 !important;
    transform: none !important;
    text-align: center !important;
    max-width: 100% !important;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .see-all, .section__more, .header__more {
    position: static !important;         /* sits under the title */
    margin-top: 4px !important;
    font-size: 0.9rem !important;
    opacity: 0.95;
    text-decoration: none;
  }

  /* 2) Ensure the video area is the z-index reference for buttons */
  .video-slider-wrapper,
  .video-player { position: relative !important; z-index: 1; }

  /* 3) Nav buttons vertically centered over the video */
  .video-slider-wrapper .slider-btn {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;              /* always above the video */
    touch-action: manipulation;           /* better tap responsiveness */
  }
  .video-slider-wrapper .slider-btn.prev { left: 10px !important; }
  .video-slider-wrapper .slider-btn.next { right: 10px !important; }

  /* 4) Video sizing: no extra container height on mobile */
  .video-player { width: 100%; height: auto; aspect-ratio: 16/9; overflow: hidden; }
  .game-video   { width: 100%; height: auto; object-fit: contain; display: block; }

  /* 5) Optional: ensure buttons aren’t hidden by overlays/gradients */
  .video-overlay, .video-gradient { pointer-events: none; }
}

/* === Minimal custom UI for video-player === */
/* Base container */
.video-player{position:relative;overflow:hidden}

/* Center indicator (image) — hidden by default, shown briefly on click via .show */
.vp-center{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  pointer-events:none; user-select:none;
  opacity:0; transform:scale(.9);
  transition:opacity .15s ease, transform .15s ease;
}
.vp-center img{
  width:72px; height:72px; max-width:18vmin; max-height:18vmin;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.55));
}
.vp-center.show{opacity:1; transform:scale(1)}

/* Volume button — visible on hover only */
.vp-vol-btn{
  position:absolute; right:12px; bottom:12px;
  width:44px; height:44px; display:grid; place-items:center;
  border-radius:12px; border:1px solid rgba(255,255,255,.15);
  background:rgba(0,0,0,.55); color:#fff;
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  cursor:pointer; pointer-events:auto;
  opacity:0; visibility:hidden;
  transition:opacity .18s ease, visibility .18s ease, transform .12s ease, border-color .2s ease;
  z-index:2;
}
.vp-vol-btn img{width:22px; height:22px; display:block}
.video-player:hover .vp-vol-btn{opacity:1; visibility:visible}
.vp-vol-btn:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.35)}

/* Hide any native controls just in case */
.game-video::-webkit-media-controls{display:none!important}
.game-video::-moz-media-controls{display:none!important}

/* Click hint */
.video-player .game-video{cursor:pointer}
