
/* TJF compact professional card layout patch */

.compact-section{
  padding:38px 0;
}

.compact-category-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}

.visual-category-card{
  padding:0 !important;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:330px;
  border:2px solid rgba(108,92,231,.14) !important;
  border-bottom:6px solid #6c5ce7 !important;
  border-radius:24px !important;
  background:#fff;
  box-shadow:0 12px 28px rgba(55,71,79,.11) !important;
}

.visual-category-card:nth-child(2n){
  border-bottom-color:#2ec4b6 !important;
}

.visual-category-card:nth-child(3n){
  border-bottom-color:#ff8a4c !important;
}

.visual-category-card:nth-child(4n){
  border-bottom-color:#ff85a2 !important;
}

.visual-category-card::before{
  display:none !important;
}

.category-cover{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  min-height:0;
  overflow:hidden;
  background:linear-gradient(135deg,#74b9ff,#55efc4);
}

.category-cover img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}

.visual-category-card:hover{
  transform:translateY(-5px);
}

.visual-category-card:hover .category-cover img{
  transform:scale(1.045);
}

.category-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  padding-left:3px;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:#6c5ce7;
  font-size:22px;
  box-shadow:0 10px 22px rgba(0,0,0,.24);
}

.category-icon-badge{
  position:absolute;
  left:12px;
  top:12px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(255,255,255,.94);
  font-size:22px;
  box-shadow:0 7px 16px rgba(0,0,0,.16);
}

.category-video-count{
  position:absolute;
  right:12px;
  bottom:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(25,35,40,.82);
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.category-card-content{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:17px 18px 19px;
}

.category-card-content h3{
  margin:0 0 7px;
  font-size:19px;
}

.category-card-content p{
  min-height:0 !important;
  margin:0 0 14px;
  color:#607d8b;
  font-size:14px;
  line-height:1.5;
}

.category-open-link{
  margin-top:auto;
  color:#6c5ce7;
  font-weight:900;
  font-size:14px;
}

.generated-category-avatar{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:7px;
  background:
    radial-gradient(circle at 78% 18%,rgba(255,255,255,.42),transparent 23%),
    linear-gradient(135deg,#74b9ff,#55efc4);
}

.large-category-icon{
  font-size:64px;
}

.empty-category-label{
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  font-size:11px;
  font-weight:900;
}

.game-card-grid,
.review-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.game-card{
  background:#fff;
  border:2px solid rgba(46,196,182,.2);
  border-bottom:6px solid #2ec4b6;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(55,71,79,.11);
  transition:.2s;
}

.game-card:hover{
  transform:translateY(-5px);
}

.game-card-image{
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  background:linear-gradient(135deg,#6c5ce7,#2ec4b6);
}

.game-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.game-placeholder{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-size:80px;
}

.game-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:56px;
  height:56px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:#6c5ce7;
  box-shadow:0 10px 22px rgba(0,0,0,.24);
}

.game-card-body{
  padding:18px;
}

.game-card-body small{
  color:#6c5ce7;
  font-weight:900;
}

.game-card-body h3{
  margin:5px 0 7px;
}

.game-card-body p{
  margin:0;
  color:#607d8b;
  font-size:14px;
}

.compact-video-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.review-card{
  background:#fff;
  border:2px solid rgba(255,209,102,.45);
  border-left:7px solid #ffd166;
  border-radius:20px;
  padding:22px;
  box-shadow:0 12px 28px rgba(55,71,79,.1);
}

.review-stars{
  color:#f5a623;
  font-size:22px;
  letter-spacing:2px;
}

.review-card p{
  color:#455a64;
  font-size:16px;
  line-height:1.6;
}

.review-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.review-meta span{
  color:#78909c;
  font-size:13px;
}

.game-view-section{
  padding:42px 0;
}

.game-view-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:20px;
}

.game-view-header h1{
  font-size:clamp(34px,5vw,58px);
  margin:0 0 8px;
}

.embed-shell{
  width:100%;
  aspect-ratio:16/9;
  min-height:580px;
  border:8px solid #fff;
  border-radius:26px;
  overflow:hidden;
  background:#111;
  box-shadow:0 18px 45px rgba(55,71,79,.18);
}

.embed-shell iframe{
  width:100%;
  height:100%;
  display:block;
  border:0;
}

.embed-note{
  margin-top:13px;
  padding:12px 14px;
  border-radius:14px;
  background:#eef7ff;
  color:#486273;
}

body{
  overflow-x:hidden;
}

@media(max-width:1000px){
  .compact-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .game-card-grid,
  .review-grid,
  .compact-video-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:680px){
  .compact-category-grid,
  .game-card-grid,
  .review-grid,
  .compact-video-grid{
    grid-template-columns:1fr;
  }

  .visual-category-card{
    min-height:0;
  }

  .game-view-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .embed-shell{
    min-height:440px;
    aspect-ratio:4/5;
  }
}
