:root {
  --primary-color: #6366f1;
  --primary-hover-color: #818cf8;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --primary-gradient-hover: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  --secondary-color: #0f172a;
  --light-color: #f8fafc;
  --dark-color: #090d16;
  --card-background: rgba(15, 23, 42, 0.7);
  --content-background: #0f172a;
  --text-color: #cbd5e1;
  --subtle-text-color: #64748b;
  --border-color: rgba(99, 102, 241, 0.15);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-hover-color: rgba(0, 0, 0, 0.5);
  --surface-color: #1e293b;
  --hover-background-color: rgba(99, 102, 241, 0.1);
  --hover-text-color: #a5b4fc;

  --border-radius: 12px;
  --transition-speed: 0.35s;
  --transition-speed-fast: 0.2s;
  --transition-cubic: cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow: 0 4px 20px -2px var(--shadow-color), 0 2px 8px -1px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 15px 35px -5px var(--shadow-hover-color), 0 5px 15px -3px rgba(99, 102, 241, 0.2);

  --secondary-rgb: 15, 23, 42;
  --primary-rgb: 99, 102, 241;
  --dark-rgb: 9, 13, 22;
  --card-bg-rgb: 15, 23, 42;
  --content-bg-rgb: 15, 23, 42;
}

body.light-theme {
  --primary-color: #4f46e5;
  --primary-hover-color: #4338ca;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --primary-gradient-hover: linear-gradient(135deg, #4338ca 0%, #0891b2 100%);
  --secondary-color: #f8fafc;
  --light-color: #0f172a;
  --dark-color: #f8fafc;
  --card-background: #ffffff;
  --content-background: #ffffff;
  --text-color: #334155;
  --subtle-text-color: #64748b;
  --border-color: #e2e8f0;
  --shadow-color: rgba(15, 23, 42, 0.08);
  --shadow-hover-color: rgba(15, 23, 42, 0.15);
  --surface-color: #f1f5f9;
  --hover-background-color: rgba(79, 70, 229, 0.06);
  --hover-text-color: var(--primary-color);

  --primary-rgb: 79, 70, 229;
  --secondary-rgb: 248, 250, 252;
  --dark-rgb: 248, 250, 252;
  --card-bg-rgb: 255, 255, 255;
  --content-bg-rgb: 255, 255, 255;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Plus Jakarta Sans", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: -0.015em;
  background-color: var(--dark-color);
  background-image: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-color);
  transition: background-color var(--transition-speed) var(--transition-cubic),
    color var(--transition-speed) var(--transition-cubic);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.light-theme {
  background-image: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.04) 0%, transparent 60%);
}

main {
  flex-grow: 1;
  padding-top: 0;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed-fast) ease;
}

a:hover,
a:focus {
  color: var(--primary-hover-color);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(var(--primary-rgb), 0.4);
  outline-offset: 2.5px;
  border-radius: 6px;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--border-radius) / 2);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(var(--primary-rgb), 0.35);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color var(--transition-speed-fast) ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(var(--primary-rgb), 0.6);
}

.container {
  max-width: 1200px;
  width: 92%;
  margin-inline: auto;
}

header {
  background-color: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--light-color);
  padding: 0.85rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color var(--transition-speed) var(--transition-cubic),
    border-color var(--transition-speed) var(--transition-cubic),
    color var(--transition-speed) var(--transition-cubic),
    box-shadow var(--transition-speed) var(--transition-cubic);
  border-bottom: 1px solid var(--border-color);
}

body.light-theme header {
  background-color: rgba(248, 250, 252, 0.8);
  border-bottom-color: var(--border-color);
  color: var(--light-color);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .site-title-wrapper a {
  color: var(--light-color);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color var(--transition-speed-fast) ease;
}

header .site-title-wrapper a.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--light-color);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

header .site-title-wrapper a.site-logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.3));
  transition: transform var(--transition-speed) var(--transition-cubic),
    filter var(--transition-speed) var(--transition-cubic);
}

header .site-title-wrapper a.site-logo:hover img {
  transform: rotate(10deg) scale(1.05);
  filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.45));
}

body.light-theme header .site-title-wrapper a.site-logo img {
  filter: drop-shadow(0 2px 8px rgba(79, 70, 229, 0.2));
}

body.light-theme header .site-title-wrapper a.site-logo:hover img {
  filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.35));
}

body.light-theme header .site-title-wrapper a {
  color: var(--light-color);
}

header nav {
  display: flex;
  align-items: center;
}

header nav ul {
  display: flex;
  gap: 1.8rem;
  margin-inline-end: 1.5rem;
}

header nav ul li a {
  color: var(--light-color);
  opacity: 0.85;
  padding: 0.5rem 0.2rem;
  padding-bottom: 0.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-speed-fast) ease,
    opacity var(--transition-speed-fast) ease;
  border-radius: 0;
  position: relative;
  display: inline-block;
  text-decoration: none;
  background-color: transparent;
}

body.light-theme header nav ul li a {
  color: var(--light-color);
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 10px;
  transition: width var(--transition-speed-fast) var(--transition-cubic);
}

header nav ul li a:hover::after,
header nav ul li a:focus::after {
  width: 80%;
}

header nav ul li a:hover,
header nav ul li a:focus {
  color: var(--primary-color);
  opacity: 1;
  background-color: transparent;
}

body.light-theme header nav ul li a:hover,
body.light-theme header nav ul li a:focus {
  color: var(--primary-color);
}

header nav ul li.dropdown {
  position: relative;
}

header nav ul li.dropdown .dropdown-toggle .caret {
  display: inline-block;
  margin-inline-start: 4px;
  font-size: 0.8em;
  transition: transform var(--transition-speed-fast) var(--transition-cubic);
}

header nav ul li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 8px 0;
  margin: 8px 0 0;
  list-style: none;
  min-width: 170px;
  z-index: 1001;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed-fast) ease,
    visibility var(--transition-speed-fast) ease,
    transform var(--transition-speed-fast) var(--transition-cubic);
}

body.light-theme header nav ul li.dropdown .dropdown-menu {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

header nav ul li.dropdown:hover .dropdown-menu,
header nav ul li.dropdown:focus-within .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

header nav ul li.dropdown:hover .dropdown-toggle .caret {
  transform: rotate(180deg);
}

header nav ul li.dropdown .dropdown-menu li {
  margin: 0;
  padding: 0;
}

header nav ul li.dropdown .dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-speed-fast) ease,
    color var(--transition-speed-fast) ease,
    padding-left var(--transition-speed-fast) ease;
}

header nav ul li.dropdown .dropdown-menu li a:hover {
  background-color: var(--hover-background-color);
  color: var(--hover-text-color);
  padding-left: 24px;
}

#theme-toggle-button {
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid var(--border-color);
  color: var(--subtle-text-color);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  transition: background-color var(--transition-speed) var(--transition-cubic),
    color var(--transition-speed-fast) ease,
    border-color var(--transition-speed) var(--transition-cubic),
    transform var(--transition-speed-fast) var(--transition-cubic),
    box-shadow var(--transition-speed) var(--transition-cubic);
}

#theme-toggle-button:hover {
  background-color: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-color);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: rotate(45deg) scale(1.05);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.2);
}

#theme-toggle-button:active {
  transform: scale(0.9);
}

#theme-toggle-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform var(--transition-speed) var(--transition-cubic);
}

.icon-sun,
.icon-moon {
  display: none;
}

body:not(.light-theme) .icon-moon {
  display: block;
}

body.light-theme .icon-sun {
  display: block;
}

.sub-header {
  background-color: var(--content-background);
  background-image: radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  margin-top: 0;
}

body.light-theme .sub-header {
  background-image: radial-gradient(circle at 50% 100%, rgba(79, 70, 229, 0.03) 0%, transparent 70%);
}

.sub-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: var(--light-color);
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.light-theme .sub-header h1 {
  color: var(--light-color);
}

.sub-header .lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--subtle-text-color);
  max-width: 650px;
  margin: 0 auto;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero {
  display: none;
}

.cta-button,
.play-now-button,
.btn,
.view-more-button,
.back-link,
.not-found-container a.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--transition-speed-fast) var(--transition-cubic),
    box-shadow var(--transition-speed) var(--transition-cubic),
    background var(--transition-speed) var(--transition-cubic),
    color var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.cta-button,
.play-now-button,
.btn,
.view-more-button,
.not-found-container a.btn {
  background: var(--primary-gradient);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
}

.cta-button:hover,
.cta-button:focus,
.play-now-button:hover,
.play-now-button:focus,
.btn:hover,
.btn:focus,
.view-more-button:hover,
.view-more-button:focus,
.not-found-container a.btn:hover,
.not-found-container a.btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.4);
  background: var(--primary-gradient-hover);
  text-decoration: none;
}

.view-more-button {
  padding: 10px 24px;
  border-radius: calc(var(--border-radius) / 1.2);
  font-size: 0.9rem;
}

.back-link {
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--border-color);
  color: var(--subtle-text-color);
  font-size: 0.9rem;
  background-color: rgba(var(--primary-rgb), 0.03);
}

.back-link:hover {
  transform: translateY(-2px);
  background-color: var(--hover-background-color);
  color: var(--hover-text-color);
  border-color: rgba(var(--primary-rgb), 0.3);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-theme .back-link:hover {
  color: var(--hover-text-color);
}

.not-found-container a.btn {
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 1rem 2.8rem;
  font-size: 1.1rem;
}

.app-section {
  padding: 4.5rem 0;
}

.app-section h2 {
  text-align: center;
  margin-bottom: 3.5rem;
  font-size: 2rem;
  color: var(--light-color);
  font-weight: 800;
  position: relative;
  padding-bottom: 0.8rem;
  letter-spacing: -0.03em;
  transition: color var(--transition-speed) ease;
}

body.light-theme .app-section h2 {
  color: var(--light-color);
}

.app-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 99px;
  transition: background var(--transition-speed) ease;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
}

.app-card,
.app-card-horizontal {
  background-color: var(--card-background);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) var(--transition-cubic),
    box-shadow var(--transition-speed) var(--transition-cubic),
    background-color var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.app-card::before,
.app-card-horizontal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--border-radius);
  padding: 1.2px;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.3),
    rgba(168, 85, 247, 0.2)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.app-card:hover,
.app-card-horizontal:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.app-card:hover::before,
.app-card-horizontal:hover::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.6),
    rgba(168, 85, 247, 0.5)
  );
}

body.light-theme .app-card,
body.light-theme .app-card-horizontal {
  background-color: var(--card-background);
  box-shadow: var(--box-shadow);
}

body.light-theme .app-card:hover,
body.light-theme .app-card-horizontal:hover {
  box-shadow: var(--hover-shadow);
}

.app-card {
  display: flex;
  flex-direction: column;
}

.app-card a {
  color: inherit;
  text-decoration: none;
}

.app-card .card-thumbnail {
  display: block;
  overflow: hidden;
  position: relative;
}

.app-card .card-thumbnail img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  opacity: 0.95;
  transition: opacity var(--transition-speed) var(--transition-cubic),
    transform var(--transition-speed) var(--transition-cubic),
    filter var(--transition-speed) var(--transition-cubic);
  border-radius: 0;
  border-top-left-radius: calc(var(--border-radius) - 1px);
  border-top-right-radius: calc(var(--border-radius) - 1px);
  border-bottom: 1px solid var(--border-color);
}

.app-card:hover .card-thumbnail img {
  transform: scale(1.05);
  filter: brightness(1.05);
  opacity: 1;
}

.app-card .card-thumbnail img.is-placeholder {
  object-fit: cover;
  opacity: 0.8;
}

.app-card .card-content {
  padding: 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.app-card .card-title {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--light-color);
  line-height: 1.4;
  transition: color var(--transition-speed-fast) ease;
  letter-spacing: -0.02em;
}

body.light-theme .app-card .card-title {
  color: var(--light-color);
}

.app-card .card-title a {
  text-decoration: none;
  color: inherit;
}

.app-card:hover .card-title a {
  color: var(--primary-color);
}

.app-card .card-description {
  font-size: 0.88rem;
  color: var(--subtle-text-color);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  transition: color var(--transition-speed) ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.app-card .card-tags {
  margin-top: auto;
  padding-top: 0.6rem;
}

.tag {
  display: inline-block;
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-inline-end: 6px;
  margin-bottom: 6px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  transition: all var(--transition-speed-fast) var(--transition-cubic);
}

.tag:hover {
  background-color: var(--primary-color);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

body.light-theme .tag:hover {
  color: #fff !important;
}

.view-more-container {
  text-align: center;
  margin-top: 2.5rem;
}

footer {
  background-color: #070913; /* Deep sleek dark blue/black */
  color: var(--text-color);
  padding: 5rem 0 0 0;
  margin-top: 7rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

/* Add a subtle background glow effect */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

body.light-theme footer {
  background-color: #f8fafc;
  border-top-color: #e2e8f0;
}

body.light-theme footer::before {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.04) 0%, transparent 70%);
}

.footer-grid-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.35fr;
  gap: 4rem;
  padding-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-grid-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Brand Column */
.footer-col-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-color);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color var(--transition-speed-fast) ease;
}

.footer-col-brand .footer-logo img {
  height: 28px;
  width: auto;
  border-radius: 6px;
}

.footer-col-brand .footer-desc {
  color: var(--subtle-text-color);
  line-height: 1.6;
  font-size: 0.85rem;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social-links .social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 30px;
  color: var(--primary-hover-color);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all var(--transition-speed-fast) ease;
  cursor: pointer;
}

.footer-social-links .social-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

body.light-theme .footer-social-links .social-btn {
  background-color: rgba(79, 70, 229, 0.06);
  border-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
}

body.light-theme .footer-social-links .social-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Titles */
.footer-col-title {
  color: var(--light-color);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Link Lists */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list li a {
  color: var(--subtle-text-color);
  transition: all var(--transition-speed-fast) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  width: fit-content;
}

.footer-links-list li a:hover {
  color: var(--hover-text-color);
  transform: translateX(4px);
}

.footer-links-list li a.highlight {
  font-weight: 600;
}

.footer-projects-desc {
  color: var(--subtle-text-color);
  font-size: 0.8rem;
  line-height: 1.55;
  margin: -0.35rem 0 0.1rem;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  background-color: rgba(5, 7, 12, 0.4);
}

body.light-theme .footer-bottom {
  background-color: rgba(241, 245, 249, 0.4);
  border-top-color: #e2e8f0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

@media (max-width: 576px) {
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-info-group {
    align-items: center;
  }
}

.footer-bottom .copyright {
  color: var(--subtle-text-color);
  font-size: 0.8rem;
  margin: 0;
}

.footer-bottom .copyright strong {
  color: var(--text-color);
  font-weight: 600;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--subtle-text-color);
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed-fast) ease;
}

.back-to-top-btn:hover {
  border-color: var(--primary-color);
  color: var(--hover-text-color);
  background-color: var(--hover-background-color);
  transform: translateY(-2px);
}

.back-to-top-btn svg {
  transition: transform var(--transition-speed-fast) ease;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

.app-detail-container {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.app-header {
  margin-bottom: 3rem;
  text-align: center;
}

.app-title {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  text-align: center;
  color: var(--light-color);
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: color var(--transition-speed) ease;
}

body.light-theme .app-title {
  color: var(--light-color);
}

.app-header .app-description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--subtle-text-color);
  max-width: 700px;
  margin-inline: auto;
}

.app-content p,
.app-content ul,
.app-content ol {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-color);
  transition: color var(--transition-speed) ease;
}

.app-content ul,
.app-content ol {
  padding-inline-start: 20px;
}

.app-content ul {
  list-style: none;
}

.app-content ol {
  list-style: decimal;
}

.app-content ul li {
  position: relative;
  padding-inline-start: 20px;
  margin-bottom: 0.6rem;
}

.app-content ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-color);
  font-size: 1.1em;
  transition: color var(--transition-speed) ease;
  font-weight: bold;
}

.back-link-container {
  text-align: center;
  margin-top: 2.5rem;
}

.screenshots {
  margin-top: 2.5rem;
}

.screenshots h3 {
  font-size: 1.5rem;
  color: var(--light-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

body.light-theme .screenshots h3 {
  color: var(--light-color);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.screenshots-grid img {
  border-radius: calc(var(--border-radius) / 1.5);
  box-shadow: 0 3px 8px var(--shadow-color);
  cursor: pointer;
  transition: transform var(--transition-speed) ease-out,
    box-shadow var(--transition-speed) ease, filter var(--transition-speed) ease;
  border-color: var(--transition-speed) ease;
  border: 1px solid var(--border-color);
}

.screenshots-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px var(--shadow-hover-color);
  filter: brightness(1.1);
}

body.light-theme .screenshots-grid img:hover {
  filter: brightness(1.02);
}

.related-apps {
  margin-top: 3.5rem;
}

.related-apps h3 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.8rem;
  color: var(--light-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 1rem;
  transition: color var(--transition-speed) ease;
}

body.light-theme .related-apps h3 {
  color: var(--light-color);
}

.related-apps h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: background var(--transition-speed) ease;
}

.related-apps .app-grid {
  margin-top: 2.5rem;
}

.post-discovery {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 3.5rem;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.post-navigation-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  min-height: 94px;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--card-background);
  color: var(--light-color);
  box-shadow: var(--box-shadow);
  text-decoration: none;
  transition: transform var(--transition-speed) var(--transition-cubic),
    border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.post-navigation-link:hover {
  color: var(--light-color);
  transform: translateY(-3px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--hover-shadow);
}

.post-navigation-link.next {
  flex-direction: row-reverse;
  text-align: right;
}

.post-navigation-link.is-empty {
  visibility: hidden;
}

.post-navigation-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
}

.post-navigation-copy {
  min-width: 0;
  flex: 1;
}

.post-navigation-thumbnail {
  width: 76px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  object-fit: cover;
  transition: transform var(--transition-speed) var(--transition-cubic);
}

.post-navigation-link:hover .post-navigation-thumbnail {
  transform: scale(1.04);
}

.post-navigation-link strong {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .post-navigation {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .post-navigation-link.is-empty {
    display: none;
  }

  .post-navigation-link {
    width: 100%;
    min-width: 0;
    min-height: 78px;
    padding: 0.85rem;
    gap: 0.75rem;
    overflow: hidden;
  }

  .post-navigation-thumbnail {
    width: 64px;
    height: 50px;
  }

  .post-navigation-link strong {
    font-size: 0.92rem;
  }
}

.not-found-container {
  margin: 5rem auto;
  max-width: 550px;
  text-align: center;
  padding: 2.5rem;
  background-color: var(--content-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

.not-found-container h1 {
  margin: 0 0 1rem 0;
  font-size: 5em;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--primary-color);
  transition: color var(--transition-speed) ease;
  font-weight: 700;
}

.not-found-container p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-color);
  transition: color var(--transition-speed) ease-out;
}

.not-found-container p strong {
  font-weight: 600;
  color: var(--light-color);
}

body.light-theme .not-found-container p strong {
  color: var(--light-color);
}

.recommended-section {
  background-color: transparent;
  border-radius: 0;
  margin-bottom: 5rem;
  box-shadow: none;
  border: none;
  transition: all var(--transition-speed) var(--transition-cubic);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.recommended-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 4rem 6rem;
  overflow: hidden;
}



.slider-slide-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
  gap: 5rem;
}

/* 미니멀 감성 텍스트 레이아웃 */
.recommended-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 520px;
  padding: 0;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0;
  border: none !important;
  box-shadow: none !important;
  margin-left: 0;
}

.recommended-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.recommended-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .recommended-badge {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.recommended-category {
  display: inline-block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.light-theme .recommended-category {
  color: rgba(15, 23, 42, 0.55);
}

.recommended-title {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

body.light-theme .recommended-title {
  color: #0f172a;
}

.recommended-title a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.recommended-title a:hover {
  opacity: 0.8;
}

.recommended-tags-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.recommended-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: -0.01em;
}

body.light-theme .recommended-tag {
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.03);
}

.recommended-description {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

body.light-theme .recommended-description {
  color: rgba(15, 23, 42, 0.7);
}

.recommended-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.play-now-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff !important;
  padding: 0.85rem 1.85rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-now-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.play-now-button .arrow-icon {
  transition: transform 0.3s ease;
}

.play-now-button:hover .arrow-icon {
  transform: translateX(4px);
}

/* 쇼케이스 아트워크 플로팅 스타일 */
.recommended-artwork-wrapper {
  flex: 0 0 380px;
  width: 380px;
  aspect-ratio: 1.6 / 1;
}

.recommended-artwork-card {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

body.light-theme .recommended-artwork-card {
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.recommended-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.recommended-artwork-card:hover {
  transform: translateY(-8px) scale(1.02) rotate(0.5deg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.recommended-artwork-card:hover .recommended-artwork-img {
  transform: scale(1.04);
}

/* 아트워크 활성화 시 둥둥 플로팅 애니메이션 */
@keyframes recommendedFloat {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(-0.5deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* LCP 후보 이미지는 초기 페인트 후 계속 변형하지 않는다. */
.slider-slide.active .recommended-artwork-card {
  animation: none;
}

/* 슬라이더 컨트롤러 스타일 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.light-theme .slider-arrow {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.08);
}

body.light-theme .slider-arrow:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.08);
}

.slider-arrow svg {
  transition: transform 0.3s ease;
}

.slider-prev {
  left: 24px;
}

.slider-prev:hover svg {
  transform: translateX(-2px);
}

.slider-next {
  right: 24px;
}

.slider-next:hover svg {
  transform: translateX(2px);
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .slider-dot {
  background: rgba(15, 23, 42, 0.15);
}

.slider-dot.active {
  width: 24px;
  background: white;
  border-radius: 4px;
}

body.light-theme .slider-dot.active {
  background: #0f172a;
}

.recommended-section-empty p {
  color: var(--subtle-text-color);
  font-style: italic;
}

@keyframes recommendedFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 슬라이더는 초기화 과정에서 앞쪽에 복제 슬라이드를 삽입한다.
   따라서 첫 화면의 콘텐츠를 opacity/animation으로 숨기면 LCP 페인트가
   DOMContentLoaded 이후로 밀린다. 모든 슬라이드 콘텐츠를 즉시 표시한다. */
.slider-slide .recommended-badge,
.slider-slide .recommended-category,
.slider-slide .recommended-title,
.slider-slide .recommended-tags-list,
.slider-slide .recommended-description,
.slider-slide .recommended-actions,
.slider-slide .recommended-artwork-wrapper {
  opacity: 1;
}

.player-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.control-button {
  background-color: rgba(var(--secondary-rgb), 0.2);
  border: 1px solid var(--border-color);
  color: var(--subtle-text-color);
  padding: 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: background-color var(--transition-speed-fast) ease,
    color var(--transition-speed-fast) ease,
    border-color var(--transition-speed-fast) ease;
}

.control-button:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.control-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.app-player.wide-mode {
  padding-bottom: 75%;
}

.text-center {
  text-align: center;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-md-5 {
  padding: 3rem;
}

.border {
  border: 1px solid var(--border-color);
}

.rounded {
  border-radius: var(--border-radius);
}

.h-100 {
  height: 100%;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-muted {
  color: var(--subtle-text-color) !important;
}

.bg-light {
  background-color: var(--surface-color) !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--subtle-text-color);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-md-4 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 100%;
  max-width: 100%;
}

.page-container {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.page-container h1 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: var(--light-color);
  font-weight: 600;
  transition: color var(--transition-speed) ease;
  letter-spacing: 0.3px;
}

body.light-theme .page-container h1 {
  color: var(--light-color);
}

.page-container .app-section {
  padding: 0;
}

.page-container .app-section h2 {
  display: none;
}

.page-content {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.page-content h1 {
  font-size: 2.5rem;
  color: var(--light-color);
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

body.light-theme .page-content h1 {
  color: var(--light-color);
}

.page-content h2 {
  font-size: 1.8rem;
  color: var(--light-color);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

body.light-theme .page-content h2 {
  color: var(--light-color);
}

.page-content h2::after {
  display: none;
}

.page-content p,
.page-content ul,
.page-content ol {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: var(--text-color);
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
}

.page-content ul,
.page-content ol {
  padding-inline-start: 0;
  display: inline-block;
  text-align: left;
}

.page-content ul li {
  position: relative;
  padding-inline-start: 25px;
  margin-bottom: 0.8rem;
}

.page-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--primary-color);
  font-size: 1.1em;
  font-weight: 600;
}

.privacy-page {
  max-width: 960px;
}

/* ==========================================
   앱 상세 페이지 레이아웃 & 스티키 사이드바 (PC 뷰)
   ========================================== */
.app-page-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  width: 100%;
}

.app-page-layout .app-detail-columns {
  flex: 1;
  min-width: 0;
}

.app-sticky-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  align-self: flex-start;
  z-index: 10;
}

.app-sticky-sidebar .kakao-adfit-sidebar-widget {
  margin-bottom: 0;
}

@media (max-width: 1199px) {
  .app-sticky-sidebar {
    display: none;
  }
}

.app-detail-columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 0;
  margin-bottom: 3rem;
  width: 100%;
}

.app-detail-column-player {
  width: 100%;
  position: relative;
}

.app-detail-column-content {
  width: 100%;
  max-width: 900px;
}

.app-detail-column-player .app-player {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow-y: auto;
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: box-shadow var(--transition-speed) var(--transition-cubic),
    border-color var(--transition-speed) var(--transition-cubic),
    background-color var(--transition-speed) ease;
}

body.light-theme .app-detail-column-player .app-player {
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.app-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.app-player iframe.loaded {
  opacity: 1;
}

/* App Iframe Glassmorphic Loader */
.app-iframe-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-color);
  background-image: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 75%);
  z-index: 5;
  opacity: 1;
  transition: opacity 0.4s var(--transition-cubic), visibility 0.4s var(--transition-cubic);
  border-radius: inherit;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.light-theme .app-iframe-loader {
  background-color: var(--secondary-color);
  background-image: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 75%);
}

.app-iframe-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-iframe-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 36px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 12px 32px -8px var(--shadow-color), 0 0 20px 0 rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: app-loader-pop 0.4s var(--transition-cubic);
}

@keyframes app-loader-pop {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.app-iframe-spinner-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.app-iframe-spinner-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-gradient);
  filter: blur(10px);
  opacity: 0.45;
  animation: app-spinner-pulse 2s ease-in-out infinite alternate;
}

.app-iframe-spinner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary-color);
  border-right-color: rgba(99, 102, 241, 0.3);
  animation: app-iframe-spin 0.85s linear infinite;
}

.app-iframe-spinner-inner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--primary-hover-color);
  animation: app-iframe-spin-reverse 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes app-iframe-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes app-iframe-spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes app-spinner-pulse {
  0% { transform: scale(0.85); opacity: 0.3; }
  100% { transform: scale(1.15); opacity: 0.6; }
}

.app-iframe-loader-text-group {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--light-color);
  letter-spacing: -0.01em;
}

.app-iframe-loader-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.app-iframe-loader-dots {
  display: inline-flex;
  color: var(--primary-color);
}

.app-iframe-loader-dots .dot {
  animation: app-dot-blink 1.4s infinite ease-in-out both;
}

.app-iframe-loader-dots .dot:nth-child(1) { animation-delay: 0s; }
.app-iframe-loader-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.app-iframe-loader-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes app-dot-blink {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.app-iframe-loader-progress {
  width: 120px;
  height: 3px;
  background: var(--hover-background-color);
  border-radius: 99px;
  margin-top: 12px;
  overflow: hidden;
  position: relative;
}

.app-iframe-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  background: var(--primary-gradient);
  border-radius: 99px;
  animation: app-progress-slide 1.5s infinite ease-in-out;
}

@keyframes app-progress-slide {
  0% { left: -45%; width: 30%; }
  50% { width: 60%; }
  100% { left: 100%; width: 30%; }
}


/* ==========================================================================
   도구 상세 페이지 마크다운 뷰어 (.app-content / Markdown Viewer)
   ========================================================================== */

.app-content {
  padding: 2.25rem 2.5rem;
  background-color: var(--content-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 0;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 1.025rem;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
  transition: background-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

.app-content > *:first-child {
  margin-top: 0 !important;
}

.app-content > *:last-child {
  margin-bottom: 0 !important;
}

/* 일반 문단 */
.app-content p {
  margin-bottom: 1.35rem;
  line-height: 1.85;
  color: var(--text-color);
}

/* 굵은 글씨 / 강조 */
.app-content strong,
.app-content b {
  color: var(--light-color);
  font-weight: 700;
}

.app-content em,
.app-content i {
  color: var(--hover-text-color);
  font-style: italic;
}

/* 제목 스타일 (h1, h2, h3, h4, h5, h6) */
.app-content h1,
.app-content h2,
.app-content h3,
.app-content h4,
.app-content h5,
.app-content h6 {
  color: var(--light-color);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.app-content h1 {
  font-size: 1.65rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.app-content h2 {
  font-size: 1.4rem;
  margin-top: 2.4rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.app-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-color);
  position: relative;
}

.app-content h4 {
  font-size: 1.075rem;
  margin-top: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--light-color);
}

body.light-theme .app-content h1,
body.light-theme .app-content h2,
body.light-theme .app-content h3,
body.light-theme .app-content h4 {
  color: var(--light-color);
}

/* --- 수평선 (Horizontal Rule) 테마 그라디언트 디자인 */
.app-content hr {
  border: none;
  height: 1px;
  margin: 2.75rem 0;
  position: relative;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.25) 15%,
    rgba(168, 85, 247, 0.65) 50%,
    rgba(99, 102, 241, 0.25) 85%,
    transparent 100%
  );
  overflow: visible;
}

.app-content hr::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 12px;
  background-color: var(--content-background);
  color: var(--primary-hover-color);
  font-size: 0.85rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(129, 140, 248, 0.6);
  transition: background-color var(--transition-speed) ease;
}

body.light-theme .app-content hr {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(79, 70, 229, 0.2) 15%,
    rgba(99, 102, 241, 0.5) 50%,
    rgba(79, 70, 229, 0.2) 85%,
    transparent 100%
  );
}

body.light-theme .app-content hr::after {
  background-color: var(--content-background);
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(79, 70, 229, 0.35);
}

/* 순서 목록 (1. 2. 3. / Ordered List) - 세련된 뱃지 카운터 디자인 */
.app-content ol {
  list-style: none;
  counter-reset: app-content-counter;
  padding: 0;
  margin: 1.25rem 0 1.65rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.app-content ol > li {
  position: relative;
  counter-increment: app-content-counter;
  padding-left: 2.6rem;
  line-height: 1.75;
  color: var(--text-color);
}

.app-content ol > li::before {
  content: counter(app-content-counter);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.7rem;
  height: 1.7rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--primary-hover-color);
  font-size: 0.825rem;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.app-content ol > li:hover::before {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(168, 85, 247, 0.25) 100%);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

body.light-theme .app-content ol > li::before {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(129, 140, 248, 0.12) 100%);
  border-color: rgba(79, 70, 229, 0.25);
  color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(79, 70, 229, 0.08);
}

body.light-theme .app-content ol > li:hover::before {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14) 0%, rgba(129, 140, 248, 0.2) 100%);
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.18);
}

/* 비순서 목록 (-, * / Unordered List) - 글로우 불릿 포인트 디자인 */
.app-content ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.65rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.app-content ul > li {
  position: relative;
  padding-left: 1.65rem;
  line-height: 1.75;
  color: var(--text-color);
}

.app-content ul > li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  background: var(--primary-gradient);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-content ul > li:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.9);
}

body.light-theme .app-content ul > li::before {
  background: var(--primary-gradient);
  box-shadow: 0 0 6px rgba(79, 70, 229, 0.4);
}

body.light-theme .app-content ul > li:hover::before {
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.6);
}

/* 중첩 목록 (Nested Lists) */
.app-content ol ol,
.app-content ol ul,
.app-content ul ul,
.app-content ul ol {
  margin: 0.6rem 0 0.35rem 0;
  gap: 0.55rem;
}

.app-content ol ul > li,
.app-content ul ul > li {
  padding-left: 1.45rem;
}

.app-content ol ul > li::before,
.app-content ul ul > li::before {
  width: 5px;
  height: 5px;
  left: 0.35rem;
  top: 0.7rem;
  border-radius: 2px;
  background: var(--primary-hover-color);
  opacity: 0.85;
}

/* 인용구 (Blockquote) */
.app-content blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.35rem;
  background: var(--surface-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 10px 10px 0;
  color: var(--text-color);
  font-style: italic;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.app-content blockquote p:last-child {
  margin-bottom: 0;
}

/* 인라인 코드 및 코드 블록 */
.app-content code {
  font-family: "Fira Code", Consolas, Monaco, "Courier New", monospace;
  font-size: 0.88em;
  padding: 0.2em 0.45em;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--primary-hover-color);
  word-break: break-all;
}

body.light-theme .app-content code {
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.06);
}

.app-content pre {
  margin: 1.6rem 0;
  padding: 1.25rem 1.4rem;
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.app-content pre code {
  padding: 0;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 0.9rem;
}

/* 표 (Table) 디자인 */
.app-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.app-content th {
  background: var(--surface-color);
  color: var(--light-color);
  font-weight: 600;
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}

.app-content td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  transition: background-color 0.15s ease;
}

.app-content tr:last-child td {
  border-bottom: none;
}

.app-content tr:hover td {
  background: var(--hover-background-color);
}

/* 링크 (Links) */
.app-content a {
  color: var(--primary-hover-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--transition-speed-fast) ease;
}

.app-content a:hover {
  color: var(--light-color);
}

body.light-theme .app-content a {
  color: var(--primary-color);
}

body.light-theme .app-content a:hover {
  color: var(--primary-hover-color);
}

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
  .app-content {
    padding: 1.4rem 1.2rem;
    border-radius: 12px;
    font-size: 0.975rem;
  }

  .app-content h1 {
    font-size: 1.35rem;
    margin-top: 1.8rem;
  }

  .app-content h2 {
    font-size: 1.25rem;
    margin-top: 1.8rem;
  }

  .app-content h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
  }

  .app-content ol > li {
    padding-left: 2.35rem;
  }

  .app-content ol > li::before {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.775rem;
    top: 0.15rem;
  }

  .app-content ul > li {
    padding-left: 1.45rem;
  }

  .app-content hr {
    margin: 2rem 0;
  }
}

/* ==========================================
   문의하기 (Contact) 페이지 & Tally 폼
   ========================================== */
.contact-page {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-intro {
  text-align: center;
  margin-bottom: 0.25rem;
}

.contact-lead-text {
  font-size: 1.05rem;
  color: var(--text-color);
  line-height: 1.7;
  word-break: keep-all;
  margin-inline: auto;
}

.contact-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: background-color var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.contact-form-card {
  padding: 2rem 2.25rem;
  overflow: hidden;
  position: relative;
}

.contact-tally-embed {
  display: block;
  width: 100%;
  border: 0;
  min-height: 240px;
  background: transparent;
  transition: filter var(--transition-speed) ease;
}

/* 기본 및 다크 테마에서 Tally 인풋/버튼/텍스트 색상을 사이트 테마에 맞게 조화롭게 보정 */
body:not(.light-theme) .contact-tally-embed,
body.dark-theme .contact-tally-embed {
  filter: invert(0.92) hue-rotate(180deg) brightness(1.05) contrast(0.95);
}

/* 라이트 테마에서는 원본 선명한 스타일 적용 */
body.light-theme .contact-tally-embed {
  filter: none;
}

.contact-notice-card {
  padding: 1.5rem 1.75rem;
  background-color: var(--surface-color);
}

.contact-notice-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  color: var(--primary-color);
}

.contact-notice-header i {
  font-size: 1.15rem;
}

.contact-notice-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
  border-bottom: none;
  color: var(--light-color);
  text-align: left;
}

.contact-notice-body p {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--text-color);
  margin-bottom: 0.6rem;
  word-break: keep-all;
  text-align: left;
}

.contact-notice-body p:last-child {
  margin-bottom: 0;
}

.contact-notice-body strong {
  color: var(--light-color);
}

.contact-notice-body a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-speed-fast) ease;
}

.contact-notice-body a:hover {
  color: var(--primary-hover-color);
}

@media (max-width: 768px) {
  .contact-page {
    gap: 1.25rem;
  }

  .contact-form-card {
    padding: 1.25rem 1rem;
  }

  .contact-notice-card {
    padding: 1.25rem 1.25rem;
  }
}

.privacy-page p,
.privacy-page ul,
.privacy-page ol {
  max-width: 760px;
  text-align: left;
}

.privacy-page ul,
.privacy-page ol {
  display: block;
}

.about-page .page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.about-page .page-header h1 {
  margin-bottom: 0.5rem;
}

.about-page .page-header .lead {
  margin-inline: auto;
}

.about-section {
  margin-bottom: 3rem;
  text-align: center;
}

.about-page .about-section p {
  margin-inline: auto;
  text-align: center;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.about-page .about-section h2 {
  text-align: center;
  margin-inline: auto;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-intro-copy {
  text-align: left;
}

.about-page .about-kicker {
  max-width: none;
  margin: 0 0 0.65rem;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-intro h2 {
  max-width: 620px;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  text-align: left;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.about-page .about-intro p {
  max-width: 640px;
  margin-inline: 0;
  text-align: left;
  font-size: 1.08rem;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.5rem;
}

.about-text-link {
  font-weight: 700;
}

.about-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--box-shadow);
}

.about-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.about-value-icon {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--primary-color);
  font-weight: 800;
}

.about-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.about-page .about-section-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

.about-section-heading a {
  flex: 0 0 auto;
  font-weight: 700;
}

.about-sites-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.family-site-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  color: var(--text-color);
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
  transition: transform var(--transition-speed) var(--transition-cubic),
    box-shadow var(--transition-speed) var(--transition-cubic),
    border-color var(--transition-speed) ease;
}

.family-site-card:hover {
  transform: translateY(-6px);
  color: var(--text-color);
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: var(--hover-shadow);
}

.family-site-card strong {
  color: var(--light-color);
  font-size: 1.2rem;
  line-height: 1.3;
  text-wrap: pretty;
}

.family-site-card span:last-child {
  color: var(--subtle-text-color);
  font-size: 0.92rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.family-site-type {
  width: fit-content;
  color: var(--primary-color);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-contact {
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface-color);
}

.about-privacy {
  margin-bottom: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.features-section .row {
  gap: 1.5rem 0;
  justify-content: center;
}

.feature-item {
  background-color: var(--content-background);
  transition: background-color var(--transition-speed) ease,
    transform var(--transition-speed-fast) ease,
    box-shadow var(--transition-speed) ease;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

.feature-item i {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-item h3 {
  font-size: 1.25rem;
  color: var(--light-color);
  margin-bottom: 0.8rem;
  font-weight: 600;
  text-align: center;
}

body.light-theme .feature-item h3 {
  color: var(--light-color);
}

.feature-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
  text-align: center;
  color: var(--subtle-text-color);
}

.call-to-action {
  border: 1px solid var(--border-color);
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: var(--content-background);
}

.call-to-action h2 {
  border-bottom: none;
  margin-bottom: 1rem;
  margin-top: 0;
  font-size: 1.6rem;
  text-align: center;
}

.call-to-action p {
  margin-bottom: 1.5rem;
  margin-inline: auto;
  text-align: center;
}

.app-orientation-vertical .app-detail-vertical-layout,
.app-orientation-vertical .app-detail-columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.app-orientation-vertical .app-player-wrapper,
.app-orientation-vertical .app-detail-column-player {
  width: 100%;
  max-width: 400px;
  position: relative;
  flex: none;
}

.app-orientation-vertical .app-player {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%;
  height: 0;
  overflow: auto;
  background-color: #000;
  border-radius: calc(var(--border-radius) - 2px);
  border: 1px solid var(--border-color);
}

.app-orientation-vertical .app-content,
.app-orientation-vertical .app-detail-column-content {
  width: 100%;
  max-width: 700px;
  flex: none;
  min-width: unset;
}

.app-orientation-vertical .player-controls {
  position: static;
  margin-bottom: 0.5rem;
  justify-content: flex-end;
}

.app-card-horizontal {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.app-card-thumbnail {
  flex: 0 0 100px;
  overflow: hidden;
  position: relative;
  align-self: stretch;
}

.app-card-thumbnail a {
  display: block;
  height: 100%;
}

.app-card-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform var(--transition-speed-fast) ease,
    filter var(--transition-speed-fast) ease;
}

.app-card-horizontal:hover .app-card-thumbnail img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.app-card-content {
  flex: 1;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.app-card-title {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--light-color);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light-theme .app-card-title {
  color: var(--light-color);
}

.app-card-title a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed-fast) ease-out;
}

.app-card-title a:hover {
  color: var(--primary-color);
}

.app-card-description {
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  color: var(--subtle-text-color);
  line-height: 1.5;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.app-card-tags {
  margin-top: auto;
  padding-top: 0.4rem;
}

.app-card-tags .tag {
  background-color: rgba(var(--secondary-rgb), 0.15);
  color: var(--subtle-text-color);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 400;
  margin-inline-end: 5px;
  margin-bottom: 5px;
  border: none;
  display: inline-block;
  transition: background-color var(--transition-speed-fast) ease,
    color var(--transition-speed-fast) ease,
    transform var(--transition-speed-fast) ease;
}

.app-card-tags .tag:hover {
  background-color: rgba(var(--primary-rgb), 0.15);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.categories-list {
  margin-top: 0;
}

body.player-expanded #player-container .app-player.app-player--expanded {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  aspect-ratio: auto !important;
  z-index: 1001 !important;
  padding-bottom: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  background-color: var(--dark-color) !important;
  overflow-y: auto !important;
}

body.player-expanded #player-container .player-controls {
  position: fixed !important;
  top: 15px !important;
  right: 15px !important;
  z-index: 1002 !important;
  background-color: rgba(0, 0, 0, 0.6) !important;
  padding: 8px !important;
  border-radius: var(--border-radius) !important;
  display: flex !important;
  margin: 0 !important;
}

body.player-expanded #player-container .player-controls .device-btn,
body.player-expanded #player-container .player-controls .player-controls-divider {
  display: none !important;
}

body.player-expanded .app-detail-column-content,
body.player-expanded .back-link-container,
body.player-expanded header:not(.header-fixed) {
  display: none;
}

body.player-expanded {
  overflow: hidden;
}

header nav ul li a.active {
  font-weight: bold;
  text-decoration: underline;
}

.favorites-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}

.favorites-page .app-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.no-favorites-message {
  margin-top: 20px;
  margin-bottom: 1.25rem;
  color: var(--subtle-text-color);
  text-align: center;
}

.favorite-toggle-btn {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--subtle-text-color);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  line-height: 1;
  margin-inline-start: 0.5rem;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-speed-fast) ease,
    border-color var(--transition-speed-fast) ease,
    background-color var(--transition-speed-fast) ease,
    transform var(--transition-speed-fast) ease;
}

.favorite-toggle-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: rgba(var(--primary-rgb), 0.05);
}

.favorite-toggle-btn:active {
  transform: scale(0.95);
  background-color: rgba(var(--primary-rgb), 0.1);
}

.favorite-toggle-btn.is-favorite {
  background-color: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.favorite-toggle-btn.is-favorite:hover {
  background-color: rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary-hover-color);
  color: var(--primary-hover-color);
}

.favorite-toggle-btn.is-favorite:active {
  transform: scale(0.95);
  background-color: rgba(var(--primary-rgb), 0.3);
}

.favorite-toggle-btn svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Player controls favorite button specific overrides */
.control-button.favorite-toggle-btn {
  margin: 0;
  padding: 0.4rem;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  border-radius: 6px;
  background-color: rgba(var(--secondary-rgb), 0.2);
}

.control-button.favorite-toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  transition: fill var(--transition-speed-fast) ease, stroke var(--transition-speed-fast) ease;
}

.control-button.favorite-toggle-btn.is-favorite svg {
  fill: #ffb700;
  stroke: #ffb700;
}

.control-button.favorite-toggle-btn:hover svg {
  stroke: #ffb700;
}

.control-button.favorite-toggle-btn.is-favorite:hover svg {
  fill: #e0a100;
  stroke: #e0a100;
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .p-md-5 {
    padding: 3rem;
  }
}

@media (max-width: 992px) {
  .container {
    width: 90%;
  }

  .app-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
  }

  .about-intro,
  .about-value-grid,
  .about-sites-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .app-title {
    font-size: 2.2rem;
  }

  .app-section h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  .page-content h1,
  .page-container h1 {
    font-size: 2.2rem;
  }

  .page-content h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 0;
  }

  .about-intro-copy,
  .about-intro h2,
  .about-page .about-intro p,
  .about-section-heading h2 {
    text-align: center;
  }

  .about-page .about-intro p {
    margin-inline: auto;
  }

  .about-actions,
  .about-section-heading {
    justify-content: center;
  }

  .about-section-heading {
    align-items: center;
    flex-direction: column;
  }

  .about-contact {
    padding: 1.5rem;
  }

  header {
    padding: 0.5rem 0;
    position: sticky;
  }

  header .container {
    flex-direction: column;
    align-items: center;
    padding-bottom: 0.5rem;
    width: 100%;
    padding: 0 1rem;
    position: relative;
  }

  header .site-title-wrapper {
    margin-bottom: 0.5rem;
    text-align: center;
  }

  header .site-title-wrapper a {
    font-size: 1.2rem;
  }

  header nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  header nav ul {
    margin-inline-end: 0;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline-start: 0;
    gap: 0.5rem 1rem;
  }

  header nav ul li a {
    font-size: 0.85rem;
    padding: 0.4rem 0.1rem;
  }

  #theme-toggle-button {
    position: absolute;
    top: 4px;
    right: 1rem;
    margin-top: 0;
    width: 32px;
    height: 32px;
    padding: 0.4rem;
  }

  #theme-toggle-button svg {
    width: 16px;
    height: 16px;
  }

  .sub-header {
    padding: 1.5rem 0;
  }

  .sub-header h1 {
    font-size: 1.8rem;
  }

  .sub-header .lead {
    font-size: 1rem;
  }

  .app-detail-container,
  .page-content,
  .page-container {
    padding-top: 2rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .app-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .app-title {
    font-size: 1.8rem;
  }

  .app-content {
    padding: 1.5rem;
  }

  .app-content h2,
  .app-content h3 {
    font-size: 1.2rem;
  }

  .related-apps h3 {
    font-size: 1.6rem;
  }

  .app-detail-columns {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .app-detail-column-player,
  .app-detail-column-content {
    flex: 1 1 100%;
    min-width: unset;
    width: 100%;
  }

  .app-orientation-horizontal .app-player {
    padding-bottom: 56.25%;
    overflow: auto;
  }

  .app-orientation-horizontal .player-controls {
    position: static;
    margin-bottom: 0.5rem;
    justify-content: flex-end;
  }

  .app-header {
    margin-bottom: 2rem;
  }

  .recommended-app-card {
    flex-direction: column;
  }

  .recommended-thumbnail img {
    border-inline-end: none;
    border-bottom: 1px solid var(--border-color);
  }

  .recommended-content {
    padding: 1.5rem;
  }

  .recommended-title {
    font-size: 1.5rem;
  }

  .recommended-description {
    font-size: 1rem;
  }

  .recommended-actions {
    margin-top: 1rem;
  }

  .play-now-button {
    display: block;
    margin-inline-end: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
  }

  .recommended-tags {
    display: block;
    text-align: center;
  }

  .page-content h1,
  .page-container h1 {
    font-size: 2rem;
  }

  .page-content h2 {
    font-size: 1.5rem;
  }

  .page-content p,
  .page-content ul,
  .page-content ol {
    font-size: 0.95rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .p-md-5 {
    padding: 1.5rem;
  }

  .app-orientation-vertical .app-player-wrapper,
  .app-orientation-vertical .app-detail-column-player {
    max-width: 90%;
  }

  .app-card-horizontal {
    margin-bottom: 1.2rem;
    max-width: none;
  }

  .app-card-thumbnail {
    flex-basis: 90px;
    margin-inline-end: 1rem;
  }

  .app-card-content {
    padding: 0.8rem 1rem 0.8rem 0;
  }

  .app-card-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .app-card-description {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
  }

  .app-card-tags .tag {
    padding: 2px 6px;
    font-size: 0.6rem;
    margin-inline-end: 4px;
    margin-bottom: 4px;
  }

  /* Recommended Section & Slider Mobile Optimization */
  .app-section.recommended-section {
    padding: 0;
    margin-bottom: 3rem;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background-color: transparent;
  }

  .slider-slide {
    min-height: 480px;
    padding: 3rem 2rem 4rem 2rem;
  }



  .slider-slide-container {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
  }

  .recommended-content-wrapper {
    max-width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .recommended-meta {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .recommended-tags-list {
    justify-content: center;
    margin-bottom: 1.25rem;
  }

  .recommended-actions {
    justify-content: center;
  }

  .recommended-badge {
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
  }

  .recommended-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .recommended-description {
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
  }

  .recommended-artwork-wrapper {
    flex: 0 0 auto;
    width: 280px;
    aspect-ratio: 1.6 / 1;
  }

  .slider-arrow {
    display: none;
  }

  .slider-dots {
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  body {
    line-height: 1.6;
  }

  main {
    padding-top: 0;
  }

  .sub-header h1 {
    font-size: 1.6rem;
  }

  .sub-header .lead {
    font-size: 0.9rem;
  }

  .container {
    width: 92%;
  }

  header {
    padding: 0.3rem 0;
  }

  header .site-title-wrapper a {
    font-size: 1.1rem;
  }

  header nav ul {
    gap: 0.3rem 0.5rem;
  }

  header nav ul li a {
    padding: 6px 3px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 3rem 0;
    margin-bottom: 3rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .cta-button,
  .play-now-button,
  .btn,
  .view-more-button {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .app-section {
    padding: 3rem 0;
  }

  .app-section.recommended-section {
    padding: 0;
    margin-bottom: 2rem;
    border-radius: 0;
  }

  .slider-slide {
    min-height: 440px;
    padding: 2.5rem 1.25rem 3.5rem 1.25rem;
  }

  .recommended-content-wrapper {
    padding: 0;
  }

  .recommended-title {
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
  }

  .recommended-description {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
  }

  .recommended-artwork-wrapper {
    width: 210px;
  }

  .slider-dots {
    bottom: 12px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .app-card .card-content {
    padding: 1rem;
  }

  .app-card .card-title {
    font-size: 1.1rem;
  }

  .app-card .card-description {
    font-size: 0.85rem;
  }

  .app-title {
    font-size: 1.6rem;
  }

  .app-content {
    padding: 1.2rem;
  }

  .app-content h2,
  .app-content h3 {
    font-size: 1.1rem;
  }

  .app-content p,
  .app-content ul,
  .app-content ol {
    font-size: 0.88rem;
  }

  .related-apps h3 {
    font-size: 1.5rem;
  }

  .screenshots-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
  }

  .not-found-container h1 {
    font-size: 4em;
  }

  .not-found-container p {
    font-size: 0.95rem;
  }

  .control-button {
    width: 30px;
    height: 30px;
    padding: 0.35rem;
  }

  .control-button svg {
    width: 16px;
    height: 16px;
  }

  .page-content h1,
  .page-container h1 {
    font-size: 1.8rem;
  }

  .page-content h2 {
    font-size: 1.4rem;
  }

  .page-content p,
  .page-content ul,
  .page-content ol {
    font-size: 0.9rem;
  }

  .lead {
    font-size: 1rem;
  }

  .app-card-thumbnail {
    flex-basis: 75px;
    margin-inline-end: 0.8rem;
  }

  .app-card-content {
    padding: 0.6rem 0.8rem 0.6rem 0;
  }

  .app-card-title {
    font-size: 0.95rem;
  }

  .app-card-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 1;
  }

  .app-card-tags .tag {
    padding: 2px 5px;
    font-size: 0.55rem;
  }
}

.coupang-banner-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 32px auto;
  padding: 16px 20px;
  background-color: var(--card-background);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.coupang-banner-wrapper:hover {
  border-color: rgba(230, 0, 18, 0.35);
  box-shadow: 0 10px 30px rgba(230, 0, 18, 0.12);
}

.coupang-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.coupang-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.coupang-banner-title svg {
  color: #e60012;
}

.coupang-badge {
  background: linear-gradient(135deg, #e60012 0%, #ff4d4d 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(230, 0, 18, 0.3);
}

.coupang-banner-container-single {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.coupang-banner-container-single > iframe,
.coupang-banner-container-single > script + ins {
  display: block !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100%;
  border-radius: 8px;
}

.coupang-banner-disclaimer {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted, #888);
  text-align: center;
  line-height: 1.4;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .coupang-banner-wrapper {
    margin: 24px auto;
    padding: 12px 12px;
    border-radius: calc(var(--border-radius) / 1.2);
  }
  .coupang-banner-title {
    font-size: 0.82rem;
  }
  .coupang-banner-disclaimer {
    font-size: 0.68rem;
  }
}

/* 5일마다 바뀌는 인기 앱 그리드 초기 숨김 처리 */
#popular-apps-grid > .app-card,
#popular-apps-grid > .app-card-horizontal {
  display: none;
}

/* ==========================================
   검색 기능 스타일 (Search Styles)
   ========================================== */
.search-container {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.search-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 820px;
  justify-content: center;
  align-items: stretch;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 4px;
  box-shadow: var(--box-shadow);
  transition: border-color var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease;
}

.search-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25), var(--box-shadow);
}

@media (max-width: 768px) {
  .search-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .search-wrapper {
    width: 100%;
    max-width: 600px;
  }
}

.search-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--subtle-text-color);
  pointer-events: none;
  transition: color var(--transition-speed-fast) ease;
}

.search-wrapper:focus-within .search-icon {
  color: var(--primary-color);
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 48px;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-color);
}

.search-input::placeholder {
  color: var(--subtle-text-color);
  opacity: 0.8;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border: none;
  border-radius: 50%;
  color: var(--subtle-text-color);
  cursor: pointer;
  transition: background-color var(--transition-speed-fast) ease, color var(--transition-speed-fast) ease, transform var(--transition-speed-fast) ease;
}

.search-clear-btn:hover {
  background: rgba(var(--primary-rgb), 0.2);
  color: var(--text-color);
  transform: scale(1.05);
}

.search-clear-btn svg {
  width: 16px;
  height: 16px;
}

.search-results-info {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--subtle-text-color);
  animation: searchFadeIn 0.3s ease;
}

.search-count {
  font-weight: 700;
  color: var(--primary-color);
}

/* 검색 결과 없음 스타일 (No Results Section) */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface-color);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
  margin: 2rem auto;
  max-width: 600px;
  width: 100%;
  animation: searchFadeIn 0.4s ease;
}

.no-results-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  animation: searchFloat 3s ease-in-out infinite;
  display: inline-block;
}

.no-results h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
}

.no-results p {
  color: var(--subtle-text-color);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

@keyframes searchFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes searchFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* ==========================================
   태그 드롭다운 필터 스타일 (Tag Dropdown Filters)
   ========================================== */
.tag-dropdown-wrapper {
  position: relative;
  width: 220px;
  flex-shrink: 0;
  margin: 0;
  z-index: 100;
  animation: searchFadeIn 0.3s ease;
}

@media (max-width: 768px) {
  .tag-dropdown-wrapper {
    width: 100%;
    max-width: 600px;
    margin-top: 1rem;
  }
  .tag-dropdown-menu {
    min-width: unset;
    width: 100%;
  }
}

.tag-dropdown-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0.75rem 1.2rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed-fast) ease;
  box-shadow: var(--box-shadow);
}

.tag-dropdown-trigger:hover {
  border-color: var(--primary-color);
  background: var(--hover-background-color);
}

.tag-dropdown-trigger:focus-visible {
  outline: 2px solid rgba(var(--primary-rgb), 0.4);
  outline-offset: 2px;
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  color: var(--subtle-text-color);
  transition: transform var(--transition-speed-fast) ease;
  pointer-events: none;
}

.tag-dropdown-wrapper.open .dropdown-arrow {
  transform: rotate(180deg);
}

.tag-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 100%;
  min-width: 300px;
  max-width: 460px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--content-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--hover-shadow);
  display: none;
  opacity: 0;
  transition: opacity var(--transition-speed-fast) ease, transform var(--transition-speed-fast) ease;
  z-index: 110;
  padding: 1rem;
  box-sizing: border-box;
}

/* 다크 테마 투명 아크릴 효과 부여 */
body.dark-theme .tag-dropdown-menu {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tag-dropdown-wrapper.open .tag-dropdown-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tag-dropdown-item {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-color);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-speed-fast) ease;
  user-select: none;
}

.tag-dropdown-item:hover {
  background-color: var(--hover-background-color);
  color: var(--hover-text-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.tag-dropdown-item.active {
  background: var(--primary-gradient);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

/* 카드 내 태그 클릭 유도 커서 스타일 */
.tag {
  cursor: pointer;
  transition: background-color var(--transition-speed-fast) ease, color var(--transition-speed-fast) ease;
}
.tag:hover {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

/* 홈 화면의 최신 앱 그리드에서 검색 비활성화 시 6개까지만 노출 */
.home-latest-grid:not(.search-active) .app-card:nth-child(n+7) {
  display: none !important;
}

/* 카드 액션 버튼 그룹 및 공유 버튼 스타일 */
.card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 0.6rem;
}

.share-btn {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--subtle-text-color);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-speed-fast) ease,
    border-color var(--transition-speed-fast) ease,
    background-color var(--transition-speed-fast) ease,
    transform var(--transition-speed-fast) ease;
}

.share-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: rgba(var(--primary-rgb), 0.05);
}

.share-btn:active {
  transform: scale(0.95);
  background-color: rgba(var(--primary-rgb), 0.1);
}

/* 글로벌 토스트 알림 스타일 */
.global-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 50px);
  background: rgba(30, 30, 35, 0.9);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.light-theme .global-toast {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.global-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ==========================================================================
   Category and App Count Badges
   ========================================================================== */

/* 1. Main Header Navigation Total Category Count Badge */
.category-total-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 6px;
  height: 18px;
  min-width: 18px;
  border-radius: 10px;
  margin-inline-start: 4px;
  vertical-align: middle;
  transition: background var(--transition-speed-fast) ease,
              color var(--transition-speed-fast) ease,
              transform var(--transition-speed-fast) ease;
}

header nav ul li a:hover .category-total-count,
header nav ul li a:focus .category-total-count {
  background: var(--primary-gradient);
  color: #ffffff;
  transform: translateY(-1px);
}

body.light-theme .category-total-count {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

/* 2. Dropdown Menu Category Count Badge */
.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--subtle-text-color);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0 5px;
  height: 16px;
  min-width: 16px;
  border-radius: 8px;
  margin-inline-start: 6px;
  vertical-align: middle;
  transition: background var(--transition-speed-fast) ease,
              color var(--transition-speed-fast) ease;
}

header nav ul li.dropdown .dropdown-menu li a:hover .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--hover-text-color);
}

body.light-theme .category-count {
  background: rgba(0, 0, 0, 0.05);
  color: var(--subtle-text-color);
}

body.light-theme header nav ul li.dropdown .dropdown-menu li a:hover .category-count {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

/* 3. Category Detail Page Title Count */
.category-title-count {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--subtle-text-color);
  margin-inline-start: 8px;
  vertical-align: middle;
  opacity: 0.8;
}

.category-title-count::before {
  content: "(";
}
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-speed-fast) ease;
  user-select: none;
}

.tag-dropdown-item:hover {
  background-color: var(--hover-background-color);
  color: var(--hover-text-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.tag-dropdown-item.active {
  background: var(--primary-gradient);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

/* 카드 내 태그 클릭 유도 커서 스타일 */
.tag {
  cursor: pointer;
  transition: background-color var(--transition-speed-fast) ease, color var(--transition-speed-fast) ease;
}
.tag:hover {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

/* 홈 화면의 최신 앱 그리드에서 검색 비활성화 시 6개까지만 노출 */
.home-latest-grid:not(.search-active) .app-card:nth-child(n+7) {
  display: none !important;
}

/* 카드 액션 버튼 그룹 및 공유 버튼 스타일 */
.card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 0.6rem;
}

.share-btn {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--subtle-text-color);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-speed-fast) ease,
    border-color var(--transition-speed-fast) ease,
    background-color var(--transition-speed-fast) ease,
    transform var(--transition-speed-fast) ease;
}

.share-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: rgba(var(--primary-rgb), 0.05);
}

.share-btn:active {
  transform: scale(0.95);
  background-color: rgba(var(--primary-rgb), 0.1);
}

/* 글로벌 토스트 알림 스타일 */
.global-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 50px);
  background: rgba(30, 30, 35, 0.9);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.light-theme .global-toast {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.global-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ==========================================================================
   Category and App Count Badges
   ========================================================================== */

/* 1. Main Header Navigation Total Category Count Badge */
.category-total-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 6px;
  height: 18px;
  min-width: 18px;
  border-radius: 10px;
  margin-inline-start: 4px;
  vertical-align: middle;
  transition: background var(--transition-speed-fast) ease,
              color var(--transition-speed-fast) ease,
              transform var(--transition-speed-fast) ease;
}

header nav ul li a:hover .category-total-count,
header nav ul li a:focus .category-total-count {
  background: var(--primary-gradient);
  color: #ffffff;
  transform: translateY(-1px);
}

body.light-theme .category-total-count {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

/* 2. Dropdown Menu Category Count Badge */
.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--subtle-text-color);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0 5px;
  height: 16px;
  min-width: 16px;
  border-radius: 8px;
  margin-inline-start: 6px;
  vertical-align: middle;
  transition: background var(--transition-speed-fast) ease,
              color var(--transition-speed-fast) ease;
}

header nav ul li.dropdown .dropdown-menu li a:hover .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--hover-text-color);
}

body.light-theme .category-count {
  background: rgba(0, 0, 0, 0.05);
  color: var(--subtle-text-color);
}

body.light-theme header nav ul li.dropdown .dropdown-menu li a:hover .category-count {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

/* 3. Category Detail Page Title Count */
.category-title-count {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--subtle-text-color);
  margin-inline-start: 8px;
  vertical-align: middle;
  opacity: 0.8;
}

.category-title-count::before {
  content: "(";
}

.category-title-count::after {
  content: ")";
}

/* --- Showcase Device Simulator Styles --- */

/* container width extension for premium wide showcase */
.app-detail-container {
  max-width: 1400px !important;
}

/* Active state for control buttons */
.control-button.active {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  opacity: 1 !important;
}

/* Device controls layout integration */
.player-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.player-controls-divider {
  width: 1px;
  height: 18px;
  background-color: var(--border-color);
  margin-inline: 0.25rem;
  opacity: 0.6;
}

/* Device sizes responsive adjustments */
/* 1. Horizontal layout device sizes */
.app-detail-column-player {
  transition: max-width var(--transition-speed) var(--transition-cubic);
}

/* Horizontal - PC / Default (Immersive widescreen PC player) */
.app-detail-column-player.device-pc {
  flex: none;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
.app-detail-column-player.device-pc .app-player {
  aspect-ratio: 16 / 9;
  padding-bottom: 0 !important;
  height: auto !important;
}

/* Horizontal - Phone (landscape style simulation) */
.app-detail-column-player.device-phone {
  flex: none;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}
.app-detail-column-player.device-phone .app-player {
  aspect-ratio: 16 / 9;
  padding-bottom: 0 !important;
  height: auto !important;
}

/* Horizontal - Tablet (landscape style simulation) */
.app-detail-column-player.device-tablet {
  flex: none;
  width: 100%;
  max-width: 1024px;
  margin-inline: auto;
}
.app-detail-column-player.device-tablet .app-player {
  aspect-ratio: 4 / 3;
  padding-bottom: 0 !important;
  height: auto !important;
}

/* 2. Vertical layout device sizes */
.app-orientation-vertical .app-player-wrapper,
.app-orientation-vertical .app-detail-column-player {
  transition: max-width var(--transition-speed) var(--transition-cubic);
}

/* Vertical - PC / Default */
.app-orientation-vertical .app-player-wrapper.device-pc,
.app-orientation-vertical .app-detail-column-player.device-pc {
  max-width: 800px;
}
.app-orientation-vertical .app-player-wrapper.device-pc .app-player,
.app-orientation-vertical .app-detail-column-player.device-pc .app-player {
  aspect-ratio: 9 / 16;
  padding-bottom: 0 !important;
  height: auto !important;
}

/* Vertical - Phone */
.app-orientation-vertical .app-player-wrapper.device-phone,
.app-orientation-vertical .app-detail-column-player.device-phone {
  max-width: 400px;
}
.app-orientation-vertical .app-player-wrapper.device-phone .app-player,
.app-orientation-vertical .app-detail-column-player.device-phone .app-player {
  aspect-ratio: 9 / 16;
  padding-bottom: 0 !important;
  height: auto !important;
}

/* Vertical - Tablet */
.app-orientation-vertical .app-player-wrapper.device-tablet,
.app-orientation-vertical .app-detail-column-player.device-tablet {
  max-width: 640px;
}
.app-orientation-vertical .app-player-wrapper.device-tablet .app-player,
.app-orientation-vertical .app-detail-column-player.device-tablet .app-player {
  aspect-ratio: 3 / 4;
  padding-bottom: 0 !important;
  height: auto !important;
}

/* Orientation toggle button specific styling */
.orientation-toggle-btn svg {
  transition: transform var(--transition-speed) ease;
}

.orientation-toggle-btn:hover svg {
  transform: rotate(90deg);
}

/* ==========================================================================
   Modern Blog-style Layout & Sidebar Widgets
   ========================================================================== */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr 340px;
  }
}

.blog-main-content {
  min-width: 0; /* Prevents flex/grid item overflow */
}

.blog-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 1.5rem;
}

/* Sidebar Styling */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) var(--transition-cubic),
              box-shadow var(--transition-speed) var(--transition-cubic);
}

.sidebar-widget:hover {
  box-shadow: var(--hover-shadow);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-gradient);
}

/* Profile Widget */
.profile-widget {
  text-align: center;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 4px;
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--surface-color);
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 0.5rem;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--subtle-text-color);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Category Widget */
.widget-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.widget-category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: var(--text-color);
  background-color: var(--surface-color);
  transition: all var(--transition-speed-fast) ease;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.widget-category-list li a:hover {
  color: var(--hover-text-color);
  background-color: var(--hover-background-color);
  border-color: var(--border-color);
  transform: translateX(4px);
}

.widget-category-list .category-name {
  font-weight: 500;
}

.widget-category-list .category-count {
  background-color: rgba(var(--primary-rgb), 0.15);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Popular Widget */
.widget-popular-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mini-app-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.mini-card-thumb {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.mini-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.mini-app-card:hover .mini-card-thumb img {
  transform: scale(1.1);
}

.mini-card-info {
  flex: 1;
  min-width: 0;
}

.mini-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light-color);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-card-title a {
  color: var(--light-color);
}

.mini-card-title a:hover {
  color: var(--primary-color);
}

.mini-card-category {
  font-size: 0.75rem;
  color: var(--subtle-text-color);
}

/* Tags Widget */
.widget-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-tag {
  font-size: 0.8rem;
  color: var(--text-color);
  background-color: var(--surface-color);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-speed-fast) ease;
}

.sidebar-tag:hover {
  color: #ffffff;
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

body.light-theme .sidebar-tag:hover {
  color: #ffffff;
}

/* ==========================================================================
   Blog App Card Layout
   ========================================================================== */

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-background) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) var(--transition-cubic),
              box-shadow var(--transition-speed) var(--transition-cubic);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.blog-card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-thumbnail-wrapper .card-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card-thumbnail-wrapper .card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform var(--transition-speed) var(--transition-cubic);
}

.blog-card:hover .blog-card-thumbnail-wrapper .card-thumbnail img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem !important;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  color: var(--subtle-text-color);
}

.blog-card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-meta-icon {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-title a {
  color: var(--light-color);
}

.blog-card-title a:hover {
  color: var(--primary-color);
}

.blog-card-description {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.85;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-tags {
  margin-bottom: 1.25rem;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.blog-card-play-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform var(--transition-speed-fast) ease;
}

.blog-card-play-btn:hover {
  color: var(--primary-hover-color);
}

.blog-card-play-btn:hover span {
  transform: translateX(3px);
  display: inline-block;
}

/* Adjust app-grid on home page for blog feed */
@media (min-width: 768px) {
  .blog-main-content .app-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  .blog-main-content .app-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .blog-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .sidebar-widget {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem !important;
    box-sizing: border-box !important;
  }
}
/* Category Page Load More (Pagination) */
.categories-list:not(.search-active) .category-limit-hidden {
  display: none !important;
}

.category-load-more-container {
  margin-top: 3rem;       /* 그리드 아래 간격 확보 */
  margin-bottom: 2.5rem;   /* 다음 섹션 제목과의 간격 확보 */
}

.category-load-more-btn {
  padding: 0.8rem 2.2rem !important; /* 프리미엄 버튼 스타일에 맞는 적절한 크기 */
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer;
}

/* ==========================================
   쿠팡 파트너스 사이드바 & 스티키 배너 스타일
   ========================================== */
.coupang-sidebar-widget {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.coupang-sidebar-widget:hover {
  border-color: rgba(230, 0, 18, 0.3);
}

.coupang-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.coupang-sidebar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-color);
}

.coupang-sidebar-title svg {
  color: #e60012;
}

.coupang-sidebar-body {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.coupang-sidebar-notice {
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--text-muted, #888);
  text-align: center;
  line-height: 1.3;
}

/* 스티키 플로팅 배너 (화면 하단 고정) */
.coupang-sticky-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  animation: slideUpSticky 0.4s ease-out;
}

body.light-theme .coupang-sticky-banner {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@keyframes slideUpSticky {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.coupang-sticky-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.coupang-sticky-close {
  position: absolute;
  top: -4px;
  right: -8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  opacity: 0.85;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-tags {
  margin-bottom: 1.25rem;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.blog-card-play-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform var(--transition-speed-fast) ease;
}

.blog-card-play-btn:hover {
  color: var(--primary-hover-color);
}

.blog-card-play-btn:hover span {
  transform: translateX(3px);
  display: inline-block;
}

/* Adjust app-grid on home page for blog feed */
@media (min-width: 768px) {
  .blog-main-content .app-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  .blog-main-content .app-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .blog-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .sidebar-widget {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem !important;
    box-sizing: border-box !important;
  }
}
/* Category Page Load More (Pagination) */
.categories-list:not(.search-active) .category-limit-hidden {
  display: none !important;
}

.category-load-more-container {
  margin-top: 3rem;       /* 그리드 아래 간격 확보 */
  margin-bottom: 2.5rem;   /* 다음 섹션 제목과의 간격 확보 */
}

.category-load-more-btn {
  padding: 0.8rem 2.2rem !important; /* 프리미엄 버튼 스타일에 맞는 적절한 크기 */
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer;
}

/* ==========================================
   쿠팡 파트너스 사이드바 & 스티키 배너 스타일
   ========================================== */
.coupang-sidebar-widget {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.coupang-sidebar-widget:hover {
  border-color: rgba(230, 0, 18, 0.3);
}

.coupang-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.coupang-sidebar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-color);
}

.coupang-sidebar-title svg {
  color: #e60012;
}

.coupang-sidebar-body {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.coupang-sidebar-notice {
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--text-muted, #888);
  text-align: center;
  line-height: 1.3;
}

/* 스티키 플로팅 배너 (화면 하단 고정) */
.coupang-sticky-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  animation: slideUpSticky 0.4s ease-out;
}

body.light-theme .coupang-sticky-banner {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@keyframes slideUpSticky {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.coupang-sticky-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.coupang-sticky-close {
  position: absolute;
  top: -4px;
  right: -8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.coupang-sticky-close:hover {
  background: #e60012;
  color: #fff;
}

.coupang-sticky-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.coupang-sticky-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-color);
}

.coupang-sticky-iframe-container {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
}

.coupang-sticky-notice {
  font-size: 0.62rem;
  color: var(--text-muted, #888);
  text-align: center;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .coupang-sticky-banner {
    padding: 6px 10px;
  }
  .coupang-sticky-iframe-container {
    height: 110px;
  }
  .coupang-sticky-title {
    font-size: 0.72rem;
  }
}

/* ==========================================
   카카오 애드핏 (Kakao AdFit) 배너 & 사이드바 스타일
   ========================================== */
.kakao-adfit-banner-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 32px auto;
  padding: 16px 20px;
  background-color: var(--card-background);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.kakao-adfit-banner-wrapper:hover {
  border-color: rgba(254, 229, 0, 0.4);
  box-shadow: 0 10px 30px rgba(254, 229, 0, 0.08);
}

.kakao-adfit-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.kakao-adfit-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.kakao-adfit-icon {
  color: #Fee500;
}

.kakao-adfit-badge {
  background: #Fee500;
  color: #191919;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.kakao-adfit-banner-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.kakao-adfit-banner-container ins.kakao_ad_area {
  display: block !important;
  margin: 0 auto !important;
}

.kakao-adfit-pc-unit {
  display: block;
  width: 100%;
  text-align: center;
}

.kakao-adfit-mobile-unit {
  display: none;
  width: 100%;
  text-align: center;
}

.kakao-adfit-single-unit {
  display: block;
  width: 100%;
  text-align: center;
}

/* 카카오 애드핏 사이드바 위젯 */
.kakao-adfit-sidebar-widget {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
  margin-bottom: 2rem;
}

.kakao-adfit-sidebar-widget:hover {
  border-color: rgba(254, 229, 0, 0.4);
}

.kakao-adfit-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.kakao-adfit-sidebar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-color);
}

.kakao-adfit-sidebar-body {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
}

.kakao-adfit-sidebar-body ins.kakao_ad_area {
  display: block !important;
  margin: 0 auto !important;
}

@media (max-width: 768px) {
  .kakao-adfit-banner-wrapper {
    margin: 24px auto;
    padding: 12px 12px;
    border-radius: calc(var(--border-radius) / 1.2);
  }
  .kakao-adfit-banner-title {
    font-size: 0.82rem;
  }
  .kakao-adfit-pc-unit {
    display: none;
  }
  .kakao-adfit-mobile-unit {
    display: block;
  }
}

/* ==========================================
   카카오 애드핏 광고 위치 미리보기 (Placeholder) 스타일
   ========================================== */
.is-placeholder-mode {
  border-style: dashed !important;
  border-color: rgba(254, 229, 0, 0.45) !important;
  background-color: rgba(254, 229, 0, 0.03) !important;
}

.adfit-placeholder-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.adfit-placeholder-pc,
.adfit-placeholder-mobile,
.adfit-placeholder-sidebar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px dashed rgba(254, 229, 0, 0.4);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(254, 229, 0, 0.04) 0%, rgba(254, 229, 0, 0.09) 100%);
  box-sizing: border-box;
  padding: 12px;
}

.adfit-placeholder-pc {
  max-width: 728px;
  min-height: 90px;
}

.adfit-placeholder-mobile {
  display: none;
  max-width: 320px;
  min-height: 100px;
}

.adfit-placeholder-sidebar {
  max-width: 300px;
  min-height: 250px;
}

.adfit-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.adfit-placeholder-tag {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.adfit-placeholder-size {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #191919;
  background: #Fee500;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .adfit-placeholder-pc {
    display: none;
  }
  .adfit-placeholder-mobile {
    display: flex;
  }
}
