/* CYO Marketing Asset Library — Envato-inspired browsing UI
   Provisional colors until the official CYO website/brand is supplied. */

:root{
  --red:#c6282c;
  --red-dark:#981f23;
  --red-deep:#77181b;
  --red-soft:#fbecee;
  --red-wash:#fff7f7;
  --ink:#252129;
  --muted:#6f6871;
  --line:#e7e1e2;
  --soft:#f8f6f6;
  --white:#fff;
  --radius:10px;
  --shell:1440px;
  --sidebar:220px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.45
}
a{color:inherit}
img,video{display:block;max-width:100%}
button,input{font:inherit}
.page-shell{width:min(calc(100% - 48px),var(--shell));margin-inline:auto}

.topbar{
  background:var(--white);
  border-bottom:4px solid var(--red);
  color:var(--ink);
}
.topbar-inner{
  width:min(calc(100% - 48px),var(--shell));
  min-height:72px;
  margin-inline:auto;
  display:flex;
  align-items:center;
  gap:32px
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  flex:0 0 auto
}
.brand-logo{
  width:82px;
  height:46px;
  object-fit:contain;
  flex:0 0 auto
}
.brand-title{font-weight:800}
.global-search{
  margin-left:auto;
  width:min(680px,60vw);
  height:44px;
  display:flex;
  align-items:center;
  gap:8px;
  background:#f8f6f6;
  border:1px solid #e6ddde;
  border-radius:7px;
  padding:0 14px;
  color:#3f3335
}
.search-icon{font-size:1.25rem;color:#667085}
.global-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#101828
}
.global-search input::placeholder{color:#98a2b3}

.sport-nav{
  border-bottom:1px solid var(--red-dark);
  background:var(--red)
}
.sport-nav-inner{
  width:min(calc(100% - 48px),var(--shell));
  height:52px;
  margin-inline:auto;
  display:flex;
  align-items:stretch;
  gap:28px;
  overflow-x:auto
}
.sport-nav a,.sport-nav span{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  text-decoration:none;
  font-size:.9rem;
  color:rgba(255,255,255,.82);
  border-bottom:3px solid transparent
}
.sport-nav .active{
  color:#fff;
  font-weight:850;
  border-bottom-color:#fff
}

.library-heading{
  background:linear-gradient(180deg,var(--red-wash),#fff);
  border-bottom:1px solid var(--line);
  padding:34px 0 30px
}
.library-heading.compact{padding:24px 0}
.breadcrumb{
  margin:0 0 8px;
  font-size:.8rem;
  color:#7b8494
}
.breadcrumb a{text-decoration:none}
.title-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px
}
.title-row h1{
  margin:0;
  font-size:clamp(2rem,4vw,3.35rem);
  line-height:1;
  letter-spacing:-.045em
}
.title-row p{
  margin:9px 0 0;
  color:var(--muted)
}
.folder-button{
  text-decoration:none;
  border:1px solid #dcc7c8;
  border-radius:7px;
  padding:11px 14px;
  background:#fff;
  font-weight:750;
  font-size:.86rem;
  white-space:nowrap
}
.folder-button:hover{border-color:var(--red);color:var(--red)}

.library-layout{
  display:grid;
  grid-template-columns:var(--sidebar) minmax(0,1fr);
  gap:34px;
  padding-top:34px;
  padding-bottom:72px
}
.home-layout{min-height:520px}

.filters{
  position:sticky;
  top:20px;
  align-self:start;
  font-size:.87rem
}
.filter-group{
  padding:0 0 24px;
  margin-bottom:24px;
  border-bottom:1px solid var(--line)
}
.filter-title{
  font-size:.78rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.09em;
  margin-bottom:12px;
  color:#3f3335
}
.filters label,
.filter-link{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:34px;
  text-decoration:none;
  color:#67585a;
  cursor:pointer
}
.filters input{accent-color:var(--red)}
.filters label span,
.filter-link span{
  margin-left:auto;
  color:#98a2b3;
  font-size:.75rem
}
.filter-link.active{color:var(--red);font-weight:800}
.filter-link.disabled{cursor:default;opacity:.55}

.results{min-width:0}
.results-toolbar{
  height:36px;
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
  color:#3f3335
}
.results-toolbar strong{font-size:.9rem}
.results-toolbar>span,.sort-label{font-size:.8rem;color:#98a2b3}

.envato-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px 18px
}
.asset-tile{min-width:0}
.tile-preview{
  position:relative;
  min-height:230px;
  border-radius:var(--radius);
  overflow:hidden;
  background:#f5efef;
  border:1px solid #e7e9ed;
  display:flex;
  align-items:center;
  justify-content:center
}
.tile-preview img{
  width:100%;
  height:100%;
  object-fit:contain
}
.aspect-wide{aspect-ratio:16/10;padding:18px}
.aspect-portrait{aspect-ratio:4/5;padding:16px}
.aspect-video{aspect-ratio:16/10;background:#2b1113}
.aspect-video video{width:100%;height:100%;object-fit:contain}
.preview-actions{
  position:absolute;
  inset:auto 10px 10px auto;
  display:flex;
  gap:7px;
  opacity:0;
  transform:translateY(4px);
  transition:.16s ease
}
.asset-tile:hover .preview-actions,
.asset-tile:focus-within .preview-actions{
  opacity:1;
  transform:none
}
.preview-actions a{
  text-decoration:none;
  background:rgba(119,24,27,.94);
  color:#fff;
  border-radius:6px;
  padding:8px 11px;
  font-size:.76rem;
  font-weight:800;
  box-shadow:0 4px 12px rgba(16,24,40,.2)
}
.play-control{
  position:absolute;
  width:48px;height:48px;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.92);
  color:var(--red);
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.18)
}
.tile-meta{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:10px 2px 0
}
.tile-meta h2{
  margin:0;
  font-size:.94rem;
  line-height:1.25
}
.tile-meta p{
  margin:4px 0 0;
  font-size:.76rem;
  color:#8a94a5
}
.tile-links a{
  font-size:.76rem;
  font-weight:800;
  text-decoration:none;
  color:var(--red)
}
.tile-links a:hover{text-decoration:underline}

.pdf-tile{
  aspect-ratio:4/5;
  background:#e9edf2
}
.pdf-tile iframe{
  width:100%;
  height:100%;
  border:0;
  position:relative;
  z-index:2;
  pointer-events:none;
  background:white
}
.pdf-fallback{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-weight:850;
  color:#5e6878
}

.sport-collection-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px
}
.collection-card{
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  transition:box-shadow .16s ease,transform .16s ease
}
.collection-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 34px rgba(16,24,40,.10)
}
.collection-preview{
  height:280px;
  padding:18px;
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:10px;
  background:linear-gradient(135deg,var(--red-soft),#fff)
}
.mini-card{
  overflow:hidden;
  border-radius:8px;
  background:white;
  box-shadow:0 5px 18px rgba(16,24,40,.12)
}
.mini-card img{width:100%;height:100%;object-fit:cover}
.mini-portrait{transform:translateY(22px)}
.collection-info{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:15px 17px 17px
}
.collection-info h2{font-size:1rem;margin:0}
.collection-info p{font-size:.78rem;color:#8a94a5;margin:4px 0 0}
.arrow{font-size:1.25rem;color:var(--red)}

.mobile-filter-bar{
  display:none;
  gap:8px;
  overflow-x:auto;
  padding-top:16px
}
.chip{
  flex:0 0 auto;
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:.78rem;
  font-weight:750;
  color:#67585a
}
.chip.active{
  background:var(--red);
  border-color:var(--red);
  color:white
}
.empty-state{
  border:1px dashed #cfd4dc;
  border-radius:10px;
  padding:54px 20px;
  text-align:center;
  color:#667085
}
.empty-state strong{color:#3f3335}
.empty-state p{margin-bottom:0}

.footer{
  border-top:4px solid var(--red);
  background:#2b2021;
  color:rgba(255,255,255,.72);
  font-size:.8rem;
  padding:28px 0
}

@media(max-width:1150px){
  .envato-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sport-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .page-shell,.topbar-inner,.sport-nav-inner{width:min(calc(100% - 28px),var(--shell))}
  .topbar-inner{min-height:64px}
  .brand-title{display:none}
  .global-search{width:auto;flex:1}
  .library-layout{grid-template-columns:1fr;padding-top:20px}
  .filters{display:none}
  .mobile-filter-bar{display:flex}
  .title-row{align-items:flex-start}
}
@media(max-width:620px){
  .sport-nav-inner{gap:22px}
  .library-heading{padding:24px 0 22px}
  .title-row{display:grid}
  .folder-button{justify-self:start}
  .envato-grid{grid-template-columns:1fr;gap:26px}
  .sport-collection-grid{grid-template-columns:1fr}
  .collection-preview{height:230px}
  .tile-preview{min-height:220px}
  .preview-actions{opacity:1;transform:none}
  .results-toolbar{margin-top:4px}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}


.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}
.footer-inner p{margin:0}
.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  font-weight:750
}
.footer-logo{
  width:62px;
  height:34px;
  object-fit:contain;
  background:#fff;
  border-radius:4px;
  padding:3px 5px
}
.folder-button:hover,
.tile-links a:hover{
  color:var(--red-dark)
}
.collection-card:hover{
  border-color:#e5c6c8
}
@media(max-width:620px){
  .brand-logo{width:66px;height:38px}
  .footer-inner{
    display:grid;
    justify-items:start;
    gap:14px
  }
}


.placeholder-collection{
  display:grid;
  place-items:center;
  grid-template-columns:1fr;
  background:linear-gradient(135deg,var(--red-soft),#fff);
}
.sport-placeholder-icon{
  font-size:4.5rem;
  line-height:1;
}
.coming-soon-page{
  min-height:500px;
  display:grid;
  place-items:center;
  padding-top:70px;
  padding-bottom:90px;
}
.coming-soon-panel{
  width:min(100%,680px);
  text-align:center;
  padding:56px 34px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(180deg,var(--red-wash),#fff);
}
.coming-soon-panel h2{
  margin:12px 0 10px;
  font-size:clamp(1.8rem,4vw,2.7rem);
  letter-spacing:-.04em;
}
.coming-soon-panel p{
  color:var(--muted);
  max-width:540px;
  margin-left:auto;
  margin-right:auto;
}
.coming-soon-kicker{
  margin-top:18px !important;
  margin-bottom:0 !important;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.75rem;
  font-weight:850;
  color:var(--red) !important;
}
.coming-soon-panel .folder-button{
  display:inline-flex;
  margin-top:14px;
}


/* Supplied sport illustrations are used as defaults only when a sport has no live asset previews. */
.placeholder-collection{
  display:grid;
  place-items:center;
  grid-template-columns:1fr;
  background:linear-gradient(180deg,var(--red-wash),#fff);
}
.sport-illustration{
  width:min(76%, 230px);
  max-height:210px;
  object-fit:contain;
  display:block;
}
.coming-soon-illustration{
  width:min(220px, 60vw);
  max-height:240px;
  object-fit:contain;
  display:block;
  margin:0 auto 14px;
}
.sport-placeholder-icon{
  display:none;
}
@media(max-width:620px){
  .sport-illustration{
    width:min(72%, 205px);
    max-height:185px;
  }
  .coming-soon-illustration{
    width:min(190px, 68vw);
    max-height:210px;
  }
}
