:root{
  --ypf-primary:#003859;
  --ypf-accent:#f6b436;
  --ypf-teal:#029692;
  --ypf-pink:#c71d79;
  --ypf-white:#ffffff;
  --ypf-bg:#04131d;
  --ypf-surface:#082233;
  --ypf-surface-2:#0c2e44;
  --ypf-border:rgba(255,255,255,.08);
  --ypf-shadow:0 18px 50px rgba(0,0,0,.28);
  --ypf-radius:20px;
}
body,.gallery{font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:linear-gradient(180deg,#03111a 0%,#072435 45%,#04131d 100%);color:var(--ypf-white)}
body a{transition:.24s ease}
.mainArea,.ypf-main-area{padding:22px 18px 40px}
.navbar,.navbar-default{background:rgba(0,26,41,.88)!important;border:none!important;backdrop-filter:blur(14px);box-shadow:0 8px 24px rgba(0,0,0,.18)}
.navbar-default .navbar-nav>li>a,.navbar-default .navbar-brand{color:#fff!important;font-weight:600}
.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-brand:hover{color:var(--ypf-accent)!important}
.footer,.footerContent,footer{background:linear-gradient(180deg,#07263a 0%,#04131d 100%)!important;border-top:1px solid var(--ypf-border);color:#d6e8f2}
#mainFooter a,footer a{color:#fff}
.scrollToTop,.pageTop,#return-to-top{background:linear-gradient(135deg,var(--ypf-accent),var(--ypf-pink))!important;border:none!important;border-radius:999px!important;box-shadow:var(--ypf-shadow)}

.ypf-top-header{width:100%;margin:8px 0 20px;padding:22px 26px;border:1px solid var(--ypf-border);border-radius:24px;background:linear-gradient(135deg,rgba(0,56,89,.92),rgba(2,150,146,.32));box-shadow:var(--ypf-shadow)}
.ypf-top-header h1{margin:6px 0 8px;font-size:clamp(28px,4vw,44px);font-weight:800;line-height:1.05}
.ypf-top-header p{max-width:760px;margin:0;color:rgba(255,255,255,.82);font-size:15px}
.ypf-kicker{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}

.ypf-hero-wrap{margin:0 0 28px}
.ypf-hero-carousel{overflow:hidden;border-radius:28px;box-shadow:var(--ypf-shadow)}
.ypf-hero{position:relative;min-height:64vh;background-size:cover;background-position:center;display:flex;align-items:flex-end}
.ypf-hero__inner{width:100%;padding:42px 44px}
.ypf-hero__content{max-width:700px}
.ypf-badge{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;padding:8px 12px;border-radius:999px;background:rgba(246,180,54,.18);border:1px solid rgba(246,180,54,.34);color:#fff;font-weight:700}
.ypf-hero h2{margin:0 0 12px;font-size:clamp(34px,5vw,56px);line-height:.98;font-weight:800;text-shadow:0 2px 16px rgba(0,0,0,.42)}
.ypf-hero p{max-width:650px;margin:0 0 22px;font-size:16px;line-height:1.6;color:rgba(255,255,255,.86);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ypf-hero__actions{display:flex;gap:12px;flex-wrap:wrap}
.ypf-hero__actions .btn{border:none;border-radius:999px;padding:13px 22px;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.ypf-hero__actions .btn-primary{background:linear-gradient(135deg,var(--ypf-accent),#ffd16f);color:#13212d}
.ypf-hero__actions .btn-default{background:rgba(255,255,255,.12);color:#fff}
.ypf-hero-indicators{bottom:18px}.ypf-hero-indicators li{width:10px;height:10px;border:none;background:rgba(255,255,255,.4)}.ypf-hero-indicators .active{background:var(--ypf-accent)}
.ypf-hero-control{display:flex!important;align-items:center;justify-content:center;width:64px;opacity:1;background:transparent!important}
.ypf-hero-control span{display:grid;place-items:center;width:42px;height:42px;border-radius:999px;background:rgba(0,0,0,.38);backdrop-filter:blur(6px)}

.ypf-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 14px;padding:0 4px}
.h3.galleryTitle,.galleryTitle{margin:0;color:#fff;font-size:28px;font-weight:800}
.ypf-rail-actions{display:flex;gap:10px}
.ypf-rail-btn{width:42px;height:42px;border:none;border-radius:999px;background:rgba(255,255,255,.08);color:#fff;box-shadow:0 12px 26px rgba(0,0,0,.18)}
.ypf-rail-btn:hover{background:linear-gradient(135deg,var(--ypf-accent),var(--ypf-pink));transform:translateY(-1px)}

.ypf-highlight-grid-section{margin:0 0 28px}
.ypf-highlight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.ypf-highlight-card{border:1px solid var(--ypf-border);background:linear-gradient(180deg,rgba(12,46,68,.98),rgba(7,28,42,.98));border-radius:22px;overflow:hidden;box-shadow:var(--ypf-shadow)}
.ypf-highlight-card__image,.ypf-highlight-card__image .thumbsImageContainer,.ypf-highlight-card__image .aspectRatio16_9{display:block;height:100%}
.ypf-highlight-card__body{padding:14px 16px 18px}.ypf-highlight-card h4{margin:0 0 8px;font-size:17px;font-weight:700}.ypf-highlight-card h4 a{color:#fff}.ypf-highlight-card p{margin:0;color:rgba(255,255,255,.72);font-size:13px;line-height:1.55}

#liveVideos,#liveScheduleVideos,#rebroadcastVideos{margin:0 0 28px;padding:20px;border:1px solid var(--ypf-border);border-radius:24px;background:linear-gradient(180deg,rgba(12,46,68,.96),rgba(7,28,42,.96));box-shadow:var(--ypf-shadow)}
#liveVideos .galleryTitle,#rebroadcastVideos .galleryTitle{color:#fff}
#liveVideos .galleryTitle:before{content:'LIVE';display:inline-flex;margin-right:10px;padding:5px 10px;border-radius:999px;background:#ff304f;color:#fff;font-size:12px;font-weight:800;letter-spacing:.08em}
#liveScheduleVideos{background:linear-gradient(135deg,rgba(0,56,89,.98),rgba(199,29,121,.2));border-color:rgba(246,180,54,.22)}
#liveScheduleVideos .galleryTitle:before{content:'Ankündigung';display:inline-flex;margin-right:10px;padding:5px 10px;border-radius:999px;background:rgba(246,180,54,.18);color:#fff;font-size:12px;font-weight:800}

.ypf-row-section{margin:0 0 24px}
.gallerySectionContent,.ypf-rail{display:flex;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;padding:4px 4px 18px;scrollbar-width:none}
.gallerySectionContent::-webkit-scrollbar,.ypf-rail::-webkit-scrollbar{display:none}
.gallerySectionContent>.galleryVideo,.ypf-rail>.galleryVideo{float:none!important;flex:0 0 min(20%,292px);max-width:min(20%,292px);width:min(20%,292px);padding:0!important}
.gallerySectionContent>.clearfix,.ypf-rail>.clearfix,.gallerySectionContent>.col-xs-12.text-center.clear.clearfix,.ypf-rail>.col-xs-12.text-center.clear.clearfix,.gallerySection,.pagination{display:none!important}

.galleryVideo{position:relative;min-height:auto!important;margin-bottom:0!important}
.galleryVideo .thumbsImageContainer,.galleryVideo .aspectRatio16_9,.galleryVideo>a:first-child{display:block;border-radius:20px;overflow:hidden;background:#07131d;box-shadow:var(--ypf-shadow)}
.aspectRatio16_9 .thumbsImage img,.aspectRatio16_9 img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.galleryVideo .thumbsImageContainer:after,.galleryVideo>a:first-child:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.18) 72%,rgba(0,0,0,.52) 100%);pointer-events:none}
.galleryVideo:hover{transform:translateY(-6px) scale(1.01);z-index:3}
.galleryVideo .galeryDetailsContent,.galleryVideo>.galeryDetails{width:100%!important;float:none!important;padding:14px 4px 0}
.galleryVideo .title,a.h6.galleryLink>strong{display:block;margin:0;color:#fff;font-size:16px;line-height:1.35;font-weight:700;min-height:44px;max-height:44px;overflow:hidden}
.galleryVideo .videoChannel a,.galleryVideo .videoViews,.galleryVideo .videoHumanTime,.galleryVideo .galeryDetails div,.galleryVideo .galeryDetails a{color:rgba(255,255,255,.68)!important;font-size:12px}
.galleryVideo .channelPhoto{width:36px;height:36px;border-radius:999px;object-fit:cover;border:2px solid rgba(255,255,255,.12)}
.galleryVideo .channelPhotoDescription{width:calc(100% - 48px)}
.galleryVideo .galleryTags,.galleryVideo .videoViews,.galleryVideo .videoChannel,.galleryVideo .videoHumanTime{float:none!important;display:block!important;margin:0 0 6px;padding:0}
.galleryVideo .label,.gallery .label{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:none;border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font-size:11px;font-weight:700}
.galleryVideo .dropdown-toggle,.galleryActionButton .btn-link{color:#fff!important}
.galleryVideoButtons{right:12px!important;top:12px!important}
.galleryVideoButtons button{width:34px!important;height:34px!important;border:none!important;border-radius:999px!important;background:rgba(0,0,0,.45)!important;color:#fff!important}

#BigVideoLive{margin:0 0 24px;border-radius:24px;overflow:hidden;box-shadow:var(--ypf-shadow)}
#BigVideoLiveIFrame{min-height:52vh!important;background:#01080d}

@media (max-width:1399px){.gallerySectionContent>.galleryVideo,.ypf-rail>.galleryVideo{flex-basis:min(24%,280px);max-width:min(24%,280px);width:min(24%,280px)}}
@media (max-width:1199px){.ypf-highlight-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallerySectionContent>.galleryVideo,.ypf-rail>.galleryVideo{flex-basis:min(28%,260px);max-width:min(28%,260px);width:min(28%,260px)}}
@media (max-width:991px){.ypf-hero{min-height:52vh}.ypf-hero__inner{padding:28px}.ypf-highlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallerySectionContent>.galleryVideo,.ypf-rail>.galleryVideo{flex-basis:42vw;max-width:42vw;width:42vw}}
@media (max-width:767px){.mainArea,.ypf-main-area{padding:16px 10px 28px}.ypf-top-header{padding:18px}.ypf-hero{min-height:66vh}.ypf-hero__inner{padding:24px 18px}.ypf-hero__actions .btn{width:100%;justify-content:center}.ypf-highlight-grid{grid-template-columns:1fr}.gallerySectionContent>.galleryVideo,.ypf-rail>.galleryVideo{flex-basis:74vw;max-width:74vw;width:74vw}.galleryTitle{font-size:24px}}

/* v16 visibility safeguard for live/live schedule */
#liveVideos[style*="display: none"], #liveScheduleVideos[style*="display: none"]{display:none;}
#liveVideos.ypf-force-show, #liveScheduleVideos.ypf-force-show{display:block !important;}
