/* Animated genre cards: same existing grid, sizing and genre selection.
   Decorative layers sit behind real content and never block clicks. */
.genre-card {
 --genre-light:var(--accent);
 position:relative;isolation:isolate;overflow:hidden;
 transition:transform .25s,border-color .25s,box-shadow .25s,background .25s;
}
.genre-card > :not(.genre-art):not(.genre-silhouette) {position:relative;z-index:2;}
.genre-card:hover {transform:translateY(-5px);box-shadow:0 14px 29px rgba(0,0,0,.23),inset 0 1px rgba(255,255,255,.09);}
.genre-card:focus-visible {outline:3px solid var(--genre-light);outline-offset:3px;}
.genre-card.active {border-color:var(--genre-light);box-shadow:inset 0 0 0 1px var(--genre-light),0 10px 28px rgba(0,0,0,.16);}
.genre-art {position:absolute;z-index:1;right:9px;top:11px;width:115px;height:105px;
 pointer-events:none;overflow:hidden;opacity:.65;transform-origin:center;}
.genre-art i {display:block;position:absolute;font-style:normal;}
.genre-card[data-genre="football"] {--genre-light:#9fe9a6;background:#174e30;}
.genre-card[data-genre="anime"] {--genre-light:#ff9caa;background:#293c52;}
.genre-card[data-genre="music"] {--genre-light:#f1a5db;background:#342941;}
.genre-card[data-genre="gospel"] {--genre-light:#F2A900;background:linear-gradient(138deg,#4D2A00,#985300 110%);}
.genre-card[data-genre="history"] {--genre-light:#e9c294;background:#393344;}
.genre-card[data-genre="geography"] {--genre-light:#E9B08C;background:linear-gradient(125deg,#817049,#5C533A);}
.genre-card[data-genre="gaming"] {--genre-light:#FF467A;background:linear-gradient(140deg,#5003C0,#35007C);}
.genre-card[data-genre="general"] {--genre-light:#ffad68;background:#512333;}

/* Football: a rolling ball across a stylised pitch. */
.football-art .pitch {inset:16px 2px 10px 9px;border:1.5px solid rgba(177,247,180,.5);
 border-radius:4px;transform:perspective(145px) rotateX(22deg) rotate(-9deg);}
.football-art .pitch::before {content:'';position:absolute;top:0;bottom:0;left:50%;width:1px;background:rgba(177,247,180,.38);}
.football-art .pitch::after {content:'';position:absolute;width:35px;height:35px;left:calc(50% - 18px);top:calc(50% - 18px);
 border:1px solid rgba(177,247,180,.34);border-radius:50%;}
.football-art .ball {left:4px;top:42px;font-size:28px;filter:drop-shadow(0 7px 5px #051c1166);
 animation:genre-football 5.5s ease-in-out infinite;}

/* Anime: speed lines and a stylised animated slash rather than flashing imagery. */
.anime-art .speed-line {right:6px;width:73px;height:3px;border-radius:10px;
 background:linear-gradient(90deg,transparent,#ffc1c9);transform:rotate(-28deg);
 animation:genre-speed 3.6s ease-out infinite;}
.anime-art .speed-line:nth-child(1){top:16px;}
.anime-art .speed-line:nth-child(2){top:37px;width:92px;animation-delay:.3s;}
.anime-art .speed-line:nth-child(3){top:57px;width:66px;animation-delay:.7s;}
.anime-art .slash {width:11px;height:108px;right:31px;top:-6px;transform:rotate(39deg);
 background:linear-gradient(90deg,transparent,#ffb4be,transparent);
 box-shadow:0 0 13px rgba(255,140,158,.28);
 animation:genre-anime-slash 4.1s ease-in-out infinite;}

/* Music: a five-band spectrum that plays independently of the site's actual audio. */
.music-art {display:flex;align-items:center;justify-content:center;gap:6px;transform:rotate(8deg);}
.music-art i {position:relative;width:8px;height:25%;border-radius:8px;
 background:linear-gradient(#ffcbf0,#d99ad6);box-shadow:0 0 12px #e9a3d155;
 animation:genre-equalizer 1.8s ease-in-out infinite alternate;}
.music-art i:nth-child(2){animation-delay:-.7s;height:56%;}
.music-art i:nth-child(3){animation-delay:-1.1s;height:80%;}
.music-art i:nth-child(4){animation-delay:-.35s;height:50%;}
.music-art i:nth-child(5){animation-delay:-1.5s;height:35%;}

/* Gospel: a golden temple motif with gentle radiant light and a purple accent. */
.gospel-art .sun {width:100px;height:100px;top:0;right:0;border-radius:50%;
 background:radial-gradient(circle,#F9E6A8 0%,rgba(242,169,0,.5) 40%,transparent 75%);
 animation:genre-gospel-glow 5s ease-in-out infinite;}
.gospel-art .temple {right:23px;top:32px;font-size:47px;line-height:1;color:#F9E6A8;
 text-shadow:0 0 18px #F2A900,4px 4px 0 #59305d;
 animation:genre-gospel-star 6s ease-in-out infinite;}
.gospel-art .rays {inset:6px;border:1px solid rgba(249,230,168,.25);
 border-radius:50%;animation:genre-gospel-glow 5s ease-in-out infinite reverse;}

/* History: an hourglass and drifting particles. */
.history-art .hourglass {right:13px;top:8px;font-size:67px;filter:drop-shadow(0 0 10px #ffd79a77);
 animation:genre-history-turn 6.2s ease-in-out infinite;}
.history-art .speck {width:5px;height:5px;background:#eac28f;border-radius:50%;left:29px;top:72px;
 animation:genre-sand 3.1s ease-in-out infinite;}
.history-art .speck:last-child {left:42px;top:84px;animation-delay:-1.5s;}

/* Geography: a slowly rotating globe and satellite orbit. Keep the pre-existing map
   silhouette preview below; the decorative globe is separate from the outline. */
.geography-art {right:8px;top:0;}
.geography-art .orbit {inset:8px 14px;border:2px solid rgba(249,230,168,.45);border-radius:50%;
 transform:rotate(-25deg) scaleY(.55);animation:genre-orbit 9s linear infinite;}
.geography-art .globe {right:25px;top:26px;font-size:51px;line-height:1;
 filter:drop-shadow(0 4px 11px #4D412E66);animation:genre-globe 9s ease-in-out infinite;}

/* Gaming: neon arcade controller and pixel sparks. */
.gaming-art .arcade {right:13px;top:24px;width:75px;height:52px;
 display:flex;align-items:center;justify-content:space-around;
 border:3px solid #FFD51E;border-radius:16px;background:rgba(34,0,96,.5);
 font-size:31px;font-weight:900;color:#FF467A;
 box-shadow:0 0 14px rgba(255,70,122,.55),inset 0 0 12px rgba(255,213,30,.15);
 animation:genre-gamepad 3s ease-in-out infinite;}
.gaming-art .arcade b {font-size:17px;letter-spacing:-3px;color:#FFD51E;}
.gaming-art .pixel {width:9px;height:9px;background:#FFD51E;right:7px;top:7px;
 box-shadow:0 0 9px #FFD51E;animation:genre-pixel 2.8s steps(2,end) infinite;}
.gaming-art .pixel:nth-child(3){right:97px;top:80px;background:#FF467A;animation-delay:-1s;}
.gaming-art .pixel:nth-child(4){right:18px;top:87px;background:#FF467A;animation-delay:-1.9s;}

/* General Knowledge: scattered bright punctuation, not other genre artwork. */
.general-art i {font-weight:900;color:#ffbb8a;opacity:.7;text-shadow:0 0 15px #ff9f5888;
 animation:genre-general 4.5s ease-in-out infinite;}
.general-art i:nth-child(1){top:5px;right:35px;font-size:57px;transform:rotate(-18deg);}
.general-art i:nth-child(2){top:60px;right:6px;font-size:29px;animation-delay:-2s;}
.general-art i:nth-child(3){top:41px;right:90px;font-size:37px;animation-delay:-1s;}

/* Ensure decoration never conflicts with important copy / feature badges. */
.genre-card strong,.genre-card small {max-width:100%;position:relative;z-index:2;}
.genre-card .genre-featured-tag {z-index:5;}
.genre-card[data-genre="geography"] .genre-silhouette {z-index:1;right:4px;bottom:3px;opacity:.22;}
.genre-card[data-genre="geography"]:hover .genre-silhouette {opacity:.37;}
.genre-card[data-genre="gaming"] .genre-icon {filter:drop-shadow(0 0 9px #FF467A);}
.genre-card[data-genre="gospel"] .genre-icon {filter:drop-shadow(0 0 11px #F2A900);}
@keyframes genre-football {0%,100%{transform:translate(3px,12px) rotate(0deg)}50%{transform:translate(66px,-17px) rotate(270deg)}}
@keyframes genre-speed {0%,100%{transform:translate(20px,0) rotate(-28deg);opacity:.1}40%{transform:translate(-19px,0) rotate(-28deg);opacity:1}}
@keyframes genre-anime-slash {0%,40%,100%{opacity:.12;transform:rotate(39deg) translateY(5px)}51%{opacity:.8;transform:rotate(39deg) translateY(-7px)}}
@keyframes genre-equalizer {from{transform:scaleY(.35)}to{transform:scaleY(1.05)}}
@keyframes genre-gospel-glow {50%{opacity:.55;transform:scale(.89)}}
@keyframes genre-gospel-star {50%{transform:scale(1.06) rotate(14deg)}}
@keyframes genre-history-turn {0%,35%,100%{transform:rotate(0)}55%,78%{transform:rotate(180deg)}}
@keyframes genre-sand {0%,100%{transform:translateY(-11px);opacity:.2}50%{transform:translateY(13px);opacity:1}}
@keyframes genre-orbit {to{transform:rotate(335deg) scaleY(.55)}}
@keyframes genre-globe {50%{transform:rotate(-12deg) scale(1.07)}}
@keyframes genre-gamepad {50%{transform:translateY(-5px);filter:brightness(1.18)}}
@keyframes genre-pixel {0%,100%{opacity:.1;transform:translateY(3px)}50%{opacity:1;transform:translateY(-6px)}}
@keyframes genre-general {50%{transform:translateY(-11px) rotate(12deg);opacity:1}}
@media(max-width:600px){
 .genre-art{width:82px;height:88px;right:2px;top:8px;opacity:.42;transform:scale(.72);transform-origin:top right;}
 .genre-card .genre-featured-tag {font-size:8px;max-width:69%;}
 .genre-card strong {font-size:17px;}
}
@media(prefers-reduced-motion:reduce){
 .genre-art *, .genre-art *::before,.genre-art *::after{animation:none!important;}
 .genre-card{transition:none!important;}
}

/* Music's dark rave variant: hot-pink LEDs over an ultraviolet dance floor. */
.genre-card[data-genre="music"] {
 --genre-light:#FF7ED4;
 background:linear-gradient(143deg,#6420AA 0%,#43146F 54%,#1F0B3E 100%);
 border-color:rgba(255,126,212,.52);
 box-shadow:inset 0 1px rgba(255,181,218,.1),0 0 0 1px rgba(255,62,165,.08);
}
.genre-card[data-genre="music"]::after {
 content:'';position:absolute;z-index:0;inset:0;pointer-events:none;
 background:repeating-linear-gradient(0deg,transparent 0 15px,rgba(255,126,212,.045) 16px 17px),
 repeating-linear-gradient(90deg,transparent 0 17px,rgba(255,62,165,.035) 18px 19px);
 mask-image:linear-gradient(90deg,transparent 22%,#000);
}
.genre-card[data-genre="music"] .genre-icon {filter:drop-shadow(0 0 13px #FF3EA5);}
.music-art i {background:linear-gradient(#FFB5DA 0%,#FF3EA5 45%,#FF7ED4 100%);
 box-shadow:0 0 12px #FF3EA5,0 0 21px #FF3EA566;}

/* Anime is now a moving manga-panel composition with a glowing eye and slash. */
.genre-card[data-genre="anime"] {
 background:linear-gradient(133deg,#193A49 0%,#29485A 52%,#482B52 100%);
 border-color:rgba(255,136,130,.38);
}
.anime-art {overflow:visible;width:132px;height:128px;right:5px;top:0;opacity:.82;}
.anime-art::before {
 content:'';position:absolute;inset:15px 10px 7px 14px;
 border:2px solid rgba(255,198,192,.52);border-radius:13px 4px 16px 4px;
 background:linear-gradient(130deg,rgba(19,42,60,.45),rgba(255,136,130,.09));
 transform:skewY(-11deg) rotate(4deg);
 box-shadow:inset 0 0 17px rgba(255,180,182,.09),0 0 16px rgba(255,136,130,.12);
 animation:anime-panel-tilt 7s ease-in-out infinite;
}
.anime-art .anime-eye {
 width:74px;height:42px;top:47px;right:26px;border:3px solid #FFB0B7;
 border-radius:70% 12% 65% 14%;transform:rotate(-12deg);
 background:radial-gradient(circle at 53% 52%,#102638 0 6px,#FF878D 7px 13px,#FFF0EB 14px 16px,transparent 17px),
 linear-gradient(140deg,#ffc1bb,#8b4269);
 box-shadow:0 0 13px rgba(255,136,130,.46);
 animation:anime-eye-charge 6.2s ease-in-out infinite;
}
.anime-art .anime-eye::after {
 content:'';position:absolute;left:20px;top:13px;width:24px;height:12px;
 border-radius:50%;background:rgba(14,37,51,.7);
 transform:scaleY(0);animation:anime-blink 6.2s ease-in-out infinite;
}
.anime-art .anime-sigil {
 width:85px;height:85px;right:12px;top:23px;border-radius:50%;
 border:1px dashed rgba(255,207,197,.35);
 animation:anime-sigil-spin 13s linear infinite;
}
.anime-art .anime-sigil::before,.anime-art .anime-sigil::after {
 content:'';position:absolute;inset:14px;border:1px solid rgba(255,136,130,.2);border-radius:50%;
}
.anime-art .anime-sigil::after {inset:29px;border-color:rgba(255,204,204,.32);}
.anime-art .speed-line {z-index:2;background:linear-gradient(90deg,transparent,#FFDBD2);}
.anime-art .slash {z-index:3;width:7px;right:39px;top:-8px;opacity:.55;
 background:linear-gradient(90deg,transparent,#FFF7E9 45%,#FF8B9B 70%,transparent);
 box-shadow:0 0 15px #FF8B9B;animation:anime-sword-flash 5s ease-in-out infinite;}
@keyframes anime-panel-tilt {50%{transform:skewY(-5deg) rotate(7deg) translateY(-3px)}}
@keyframes anime-eye-charge {0%,100%{filter:brightness(1)}45%{filter:brightness(1.3) drop-shadow(0 0 7px #FF8882)}}
@keyframes anime-blink {0%,45%,48%,100%{transform:scaleY(0)}46.5%{transform:scaleY(1)}}
@keyframes anime-sigil-spin {to{transform:rotate(360deg)}}
@keyframes anime-sword-flash {0%,36%,100%{opacity:.12;transform:rotate(39deg) translateY(8px)}
 42%,49%{opacity:1;transform:rotate(39deg) translateY(-8px)}}
@media(max-width:600px){.anime-art{right:1px;top:4px;transform:scale(.65);transform-origin:top right;}}
@media(prefers-reduced-motion:reduce) {
 .anime-art::before,.anime-art .anime-eye,.anime-art .anime-eye::after,
 .anime-art .anime-sigil,.anime-art .slash{animation:none!important;}
}


/* Classic LED VU meter: discrete red/yellow/green segments against violet-black.
   Each bar has its own step animation, just like a club sound level meter. */
.genre-card[data-genre="music"] {
 --genre-light:#e8f741;
 background:
   radial-gradient(ellipse at 78% 19%,rgba(118,39,195,.38),transparent 62%),
   linear-gradient(145deg,#100918 0%,#261039 58%,#09080f 100%);
 border-color:rgba(166,74,236,.56);
 box-shadow:inset 0 1px rgba(228,179,255,.09),0 0 15px rgba(95,25,161,.15);
}
.genre-card[data-genre="music"]::after {
 content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
 background:
   repeating-linear-gradient(0deg,transparent 0 18px,rgba(170,68,231,.055) 18px 19px),
   repeating-linear-gradient(90deg,transparent 0 18px,rgba(170,68,231,.045) 18px 19px);
 mask-image:linear-gradient(90deg,transparent 8%,#000);
}
.genre-card[data-genre="music"] .genre-icon {filter:drop-shadow(0 0 12px #9c42db);}
.genre-card[data-genre="music"] .music-art {
 width:132px;height:118px;right:4px;top:2px;
 display:flex;align-items:flex-end;justify-content:space-between;
 gap:4px;padding:10px 7px 12px;
 transform:none;opacity:1;overflow:visible;
}
.genre-card[data-genre="music"] .music-art i {
 position:relative;display:block;flex:1;min-width:0;
 border-radius:1px;height:80%;
 background:linear-gradient(to top,
   #3dff42 0%,#4dff37 49%,#eaff20 49%,#fff82f 77%,#fc3c29 77%,#f32a26 100%);
 transform-origin:bottom center;
 box-shadow:0 0 12px rgba(66,255,62,.2);
 animation:music-led-steps 1.8s steps(6,end) infinite alternate;
}
.genre-card[data-genre="music"] .music-art i::after {
 content:'';position:absolute;inset:0;pointer-events:none;
 background:repeating-linear-gradient(to top,transparent 0 7px,#0e0816 7px 10px);
}
.genre-card[data-genre="music"] .music-art i:nth-child(1) {height:62%;animation-delay:-.8s;}
.genre-card[data-genre="music"] .music-art i:nth-child(2) {height:97%;animation-delay:-1.3s;}
.genre-card[data-genre="music"] .music-art i:nth-child(3) {height:73%;animation-delay:-.4s;}
.genre-card[data-genre="music"] .music-art i:nth-child(4) {height:100%;animation-delay:-1.6s;}
.genre-card[data-genre="music"] .music-art i:nth-child(5) {height:84%;animation-delay:-.2s;}
.genre-card[data-genre="music"] strong {text-shadow:0 0 8px rgba(164,73,222,.2);}
@keyframes music-led-steps {0%{transform:scaleY(.30)}30%{transform:scaleY(.9)}60%{transform:scaleY(.52)}100%{transform:scaleY(1)}}
@media(max-width:600px){
 .genre-card[data-genre="music"] .music-art {right:0;top:8px;transform:scale(.73);transform-origin:top right;}
}
@media(prefers-reduced-motion:reduce){
 .genre-card[data-genre="music"] .music-art i {animation:none!important;}
}
