@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&display=swap');

:root {
    --bg: #0b1a13;
    --bg-2: #0f2a1d;
    --bg-3: #13261f;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --accent: #e23b3b;
    --accent-2: #2ad38b;
    --gold: #f4c66b;
    --berry: #b91c1c;
    --pine: #0f3b2f;
    --text: #eef3f7;
    --muted: #c3ced8;
    --border: rgba(255, 255, 255, 0.2);
    --shadow: 0 20px 60px rgba(5, 10, 8, 0.5);
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --winter-bg: radial-gradient(circle at 18% 12%, rgba(42, 211, 139, 0.22), transparent 32%),
                 radial-gradient(circle at 82% 8%, rgba(226, 59, 59, 0.22), transparent 30%),
                 radial-gradient(circle at 50% -10%, rgba(244, 198, 107, 0.18), transparent 35%),
                 radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.7px),
                 radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1.9px),
                 linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
    --winter-bg-size: auto, auto, auto, 140px 140px, 220px 220px, auto;
    --winter-bg-position: 0 0, 0 0, 0 0, 0 0, 60px 90px, 0 0;
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--winter-bg);
    background-size: var(--winter-bg-size);
    background-position: var(--winter-bg-position);
    background-attachment: fixed;
    animation: snow-drift 12s linear infinite;
}

a { color: inherit; }

a:hover { color: inherit; }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@keyframes snow-drift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 60px 90px, 0 0;
    }
    100% {
        background-position: 0 0, 0 0, 0 0, 0 140px, 60px 260px, 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    body.page,
    body.auth,
    body.aiassistant,
    body.myplay,
    body.mypost {
        animation: none;
    }
}


/* kcapw.com */
html{ scroll-behavior: smooth; }

body.page *{ box-sizing: border-box; }

body.page{
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--winter-bg);
    background-size: var(--winter-bg-size);
    background-position: var(--winter-bg-position);
    background-attachment: fixed;
    animation: snow-drift 24s linear infinite;
    padding: 18px;
}

body.page main{
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
}

body.page a{ color: inherit; }

body.page a:hover{ color: inherit; }

body.page a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 4px; }

body.page .topbar{
    position: sticky;
    top: 18px;
    z-index: 1000;
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 14, 26, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

body.page .brand{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
}

body.page .brand img{
    height: 34px;
    width: 34px;
    border-radius: 10px;
}

body.page .nav-links{
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

body.page .nav-link{
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

body.page .nav-link:hover{ color: var(--text); background: var(--panel); }

body.page .nav-link.active{ color: var(--text); background: var(--panel-strong); }

body.page .hero{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.25rem;
    align-items: center;
    padding: 2.5rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

body.page .hero-content h1{
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

body.page h1,
body.page h2,
body.page h3,
body.auth h1,
body.auth h2,
body.auth h3{
    font-family: 'Fraunces', 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.01em;
}

body.page .eyebrow{
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: var(--accent-2);
    margin: 0 0 0.75rem;
}

body.page .lead{
    color: var(--muted);
    max-width: 58ch;
    margin: 0 0 1.2rem;
    line-height: 1.6;
}

body.page .hero-actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

body.page .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.page .btn.primary{
    background: linear-gradient(120deg, var(--accent), var(--gold));
    color: #0b0f14;
    box-shadow: 0 12px 25px rgba(226, 59, 59, 0.35);
}

body.page .btn.primary:hover{ transform: translateY(-1px); box-shadow: 0 14px 28px rgba(226, 59, 59, 0.45); }

body.page .btn.ghost{
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

body.page .btn.ghost:hover{ background: var(--panel-strong); }

body.page .btn.pill{
    padding: 10px 16px;
    font-weight: 700;
    border-color: var(--border);
    color: var(--text);
    background: var(--panel-strong);
}

body.page .note{
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

body.page .hero-visual{
    position: relative;
    min-height: 260px;
    background: radial-gradient(circle at 30% 30%, rgba(226, 59, 59, 0.22), transparent 45%),
                radial-gradient(circle at 80% 20%, rgba(42, 211, 139, 0.18), transparent 40%),
                var(--panel-strong);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

body.page .orb{
    position: absolute;
    filter: blur(20px);
    opacity: 0.8;
}

body.page .orb-1{
    width: 160px;
    height: 160px;
    background: rgba(226, 59, 59, 0.5);
    top: -30px;
    left: -20px;
}

body.page .orb-2{
    width: 180px;
    height: 180px;
    background: rgba(42, 211, 139, 0.4);
    bottom: -30px;
    right: -10px;
}

body.page .glass-card{
    position: absolute;
    inset: 16px;
    padding: 18px;
    background: rgba(11, 18, 33, 0.75);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
}

body.page .glass-card h3{ margin: 6px 0 10px; }

body.page .glass-card ul{
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    display: grid;
    gap: 6px;
}

body.page .glass-kicker{
    display: inline-block;
    margin: 0;
    padding: 6px 10px;
    background: var(--panel-strong);
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
}

body.page .projects{
    margin-top: 2.75rem;
}

body.page .section-header h2{
    margin: 0 0 0.35rem;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

body.page .section-header p{ margin: 0; }

body.page .projects-grid{
    margin-top: 1.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

body.page .card{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}

body.page .card:hover{
    transform: translateY(-4px);
    border-color: rgba(244, 198, 107, 0.7);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

body.page .card-logo-wrap{
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
}

body.page .card-logo{ width: 42px; height: 42px; object-fit: contain; }

body.page .card-body h3{ margin: 0 0 0.35rem; }

body.page .card-body p{
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

body.page .card-actions{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.page .chip{
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
}

body.page .contact{
    margin-top: 2.75rem;
}

body.page .form-card{
    margin-top: 1.5rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

body.page .contact-form{
    display: grid;
    gap: 1rem;
}

body.page .form-row{
    display: grid;
    gap: 0.4rem;
}

body.page .form-row label{
    font-weight: 600;
    color: var(--text);
}

.form-row input,
body.page .form-row textarea{
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel-strong);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

body.page .form-row textarea{ resize: vertical; min-height: 140px; }

.form-row input:focus,
body.page .form-row textarea:focus{
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: rgba(107, 139, 255, 0.7);
}

body.page .hp-row{ position: absolute; left: -9999px; }

body.page .hp-field{ height: 1px; width: 1px; opacity: 0; }

body.page .footer{
    max-width: 1180px;
    margin: 1.5rem auto 1rem;
    padding: 1rem;
    color: var(--muted);
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

body.page .sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    body.page{ padding: 14px; }
    body.page .topbar{ position: relative; top: 0; margin-bottom: 18px; }
    body.page .hero{ padding: 1.75rem; }
    body.page .nav-links{ gap: 12px; }
}

@media (max-width: 480px) {
    body.page .brand span{ display: none; }
    body.page .nav-links{ gap: 8px; }
    body.page .nav-link{ padding: 8px 12px; }
    body.page .hero{ padding: 1.4rem; }
}


/* auth.kcapw.com */
html{ scroll-behavior: smooth; }

body.auth *{ box-sizing: border-box; }

body.page{
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--winter-bg);
  background-size: var(--winter-bg-size);
  background-position: var(--winter-bg-position);
  background-attachment: fixed;
  animation: snow-drift 24s linear infinite;
  padding: 18px;
}

body.auth main{
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

body.auth a{ color: inherit; }

body.auth a:hover{ color: inherit; }

body.auth a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 4px; }

body.auth .brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  margin-bottom: 1.2rem;
}

body.auth .card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

body.auth h1{
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1.1;
}

body.auth .sub{
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

body.auth .notice{
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

body.auth .notice.error{
  border-color: rgba(255, 106, 106, 0.4);
}

body.auth .notice.success{
  border-color: rgba(66, 245, 215, 0.4);
}

body.auth ul.error-list{
  margin: 0;
  padding-left: 1.2rem;
}

body.auth ul.error-list li{ margin-bottom: 0.35rem; }

body.auth .field{
  margin-bottom: 1rem;
}

body.auth .field label{
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.auth .field input{
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-strong);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body.auth .field input:focus{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: rgba(107, 139, 255, 0.7);
  transform: translateY(-1px);
}

body.auth .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  background: linear-gradient(120deg, var(--accent), var(--gold));
  color: #0b0f14;
  box-shadow: 0 12px 25px rgba(226, 59, 59, 0.35);
}

body.auth .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(226, 59, 59, 0.45);
}

body.auth .links{
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  color: var(--muted);
}

body.auth .links a{
  text-decoration: none;
  font-weight: 700;
}

body.auth .links a:hover{ color: var(--text); }

@media (max-width: 720px) {
  body.page{ padding: 14px; }
  body.auth .card{ padding: 1.6rem; }
}


/* aiassistant.kcapw.com */

body.aiassistant *{
    box-sizing: border-box;
}

body.aiassistant{
    margin: 0;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--winter-bg);
    background-size: var(--winter-bg-size);
    background-position: var(--winter-bg-position);
    background-attachment: fixed;
    animation: snow-drift 24s linear infinite;
    background-repeat: no-repeat;
}

body.aiassistant a{
    color: var(--accent);
    text-decoration: underline;
}

body.aiassistant a:hover{
    color: var(--accent-2);
}

body.aiassistant .page{
    min-height: 100vh;
    padding: 28px 20px 40px;
    display: flex;
    justify-content: center;
}

body.aiassistant .chat-shell{
    width: min(920px, 100%);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.aiassistant .chat-head{
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(90deg, rgba(226, 59, 59, 0.18), rgba(244, 198, 107, 0.12)), var(--panel);
}

body.aiassistant .chat-title{
    font-size: 20px;
    font-weight: 600;
}

body.aiassistant .chat-subtitle{
    font-size: 13px;
    color: var(--muted);
}

body.aiassistant .quick-actions{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.aiassistant .quick-actions button{
    border: 1px solid var(--border);
    background: transparent;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text);
}

body.aiassistant .chat-log{
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 62vh;
    overflow-y: auto;
    scrollbar-width: none;
}

body.aiassistant .chat-log::-webkit-scrollbar{
    width: 0;
    height: 0;
}

body.aiassistant .msg{
    padding: 14px 16px;
    border-radius: 14px;
    line-height: 1.45;
    font-size: 14px;
    white-space: pre-wrap;
}

body.aiassistant .msg.user{
    align-self: flex-end;
    background: var(--user);
    border: 1px solid var(--border);
}

body.aiassistant .msg.assistant{
    align-self: flex-start;
    background: var(--assistant);
    border: 1px solid var(--border);
}

body.aiassistant .msg.pending{
    opacity: 0.7;
    font-style: italic;
}

body.aiassistant .media-list{
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

body.aiassistant .media-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 8px;
}

body.aiassistant .media-meta{
    font-size: 13px;
    color: var(--muted);
}

body.aiassistant .media-video{
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0b1224;
    max-height: 360px;
}

body.aiassistant .media-video.short{
    max-height: 520px;
}

body.aiassistant .media-footer{
    display: flex;
    justify-content: flex-end;
}

body.aiassistant .composer{
    padding: 18px 24px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
    background: var(--panel);
}

body.aiassistant .composer-stack{
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

body.aiassistant .composer textarea{
    resize: none;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 14px;
    min-height: 52px;
    min-width: 0;
    background: #0b1224;
    color: var(--text);
}

body.aiassistant .composer-meta{
    font-size: 12px;
    color: var(--muted);
}

body.aiassistant .embed-footer{
    padding: 0 24px 16px;
    display: flex;
    justify-content: flex-end;
}

body.aiassistant .embed-footer a{
    font-size: 12px;
    color: var(--accent);
}

body.aiassistant .composer button{
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #0f172a;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

body.aiassistant .composer button:hover{
    filter: brightness(1.05);
}

body.aiassistant.embed{
    background: transparent;
    overflow: hidden;
}

body.aiassistant.embed .page{
    padding: 0;
    min-height: auto;
    height: 100vh;
    overflow: hidden;
}

body.aiassistant.embed .chat-shell{
    width: 100%;
    border-radius: 12px;
    box-shadow: none;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

body.aiassistant.embed .chat-log{
    max-height: none;
    overflow-y: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

body.aiassistant.embed .chat-log::-webkit-scrollbar{
    width: 0px;
    height: 0px;
}

body.aiassistant.embed .media-video{
    max-height: 220px;
}

body.aiassistant.embed .media-video.short{
    max-height: 300px;
}

@media (max-width: 720px) {
    body.aiassistant .chat-head{
        flex-direction: column;
        align-items: flex-start;
    }
    body.aiassistant .chat-log{
        max-height: 55vh;
    }
}


/* myplay.kcapw.com */
body.myplay *{ box-sizing: border-box; }
body.myplay{
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: var(--winter-bg);
    background-size: var(--winter-bg-size);
    background-position: var(--winter-bg-position);
    background-attachment: fixed;
    animation: snow-drift 24s linear infinite;
    background-repeat: no-repeat;
    color: var(--text);
}
body.myplay a{ color: inherit; text-decoration: none; }

body.myplay .topbar{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(34,211,238,0.1), rgba(168,85,247,0.08)), var(--panel);
    position: sticky;
    top: 0;
    z-index: 10;
}
body.myplay .brand{
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
body.myplay .brand img{
    height: 22px;
    width: 22px;
    border-radius: 4px;
}
body.myplay .brand a{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
body.myplay .search{
    flex: 1;
    display: flex;
    gap: 0.5rem;
}
body.myplay .search input{
    flex: 1;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0b1224;
    color: var(--text);
}
body.myplay .search button, body.myplay .btn{
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
body.myplay .btn.ghost{
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
body.myplay .btn:hover, body.myplay .search button:hover{ transform: translateY(-1px); box-shadow: 0 8px 16px rgba(0,0,0,0.15); }
body.myplay .btn:active{ transform: translateY(0); }

body.myplay .nav-actions{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
body.myplay .welcome{ color: var(--muted); }
body.myplay .inline{ display: inline; }
body.myplay .linkish{
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}
body.myplay .page{ padding: 2rem; max-width: 1100px; margin: 0 auto; }

body.myplay .intro h1{ margin: 0 0 0.5rem; }
body.myplay .intro p{ margin: 0 0 1.5rem; color: var(--muted); }

body.myplay .grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
body.myplay .shorts-strip{
    margin-bottom: 2rem;
}
body.myplay .shorts-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}
body.myplay .shorts-row{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.9rem;
}
body.myplay .shorts-strip-card{
    background: linear-gradient(180deg, #151a26 0%, #121724 100%);
    border: 1px solid #1c2434;
    border-radius: 16px;
    overflow: hidden;
    min-width: 220px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.3);
}
body.myplay .short-thumb{
    aspect-ratio: 9 / 16;
    width: 100%;
    background: #111827;
    display: grid;
    place-items: center;
    position: relative;
}
body.myplay .short-thumb .preview-video{
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #0b1224;
}
.short-thumb img,
body.myplay .short-thumb .preview-video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.myplay .short-meta{
    padding: 0.7rem 0.8rem 0.9rem;
}
body.myplay .short-title{
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    max-height: 2.5em;
    overflow: hidden;
}
body.myplay .short-sub{
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.85rem;
}
body.myplay .card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
body.myplay .card.narrow{ max-width: 720px; margin: 0 auto; padding: 1.25rem; }
body.myplay .card-body.myplay{ padding: 0.9rem 1rem 1.1rem; }
body.myplay .card h2{ margin: 0 0 0.35rem; font-size: 1.1rem; }
body.myplay .card .meta{ color: var(--muted); margin: 0 0 0.5rem; font-size: 0.9rem; }
body.myplay .card .desc{ color: var(--text); margin: 0; font-size: 0.95rem; line-height: 1.4; }

body.myplay .thumb{
    position: relative;
    height: 160px;
    background: linear-gradient(145deg, rgba(34,211,238,0.25), rgba(168,85,247,0.2));
    display: grid;
    place-items: center;
    overflow: hidden;
}
.thumb img,
body.myplay .preview-video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.myplay .preview-video{
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #0b1224;
}
body.myplay .thumb-overlay{
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
}
body.myplay .thumb-fallback{
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    display: grid;
    place-items: center;
    color: #0f172a;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 1;
}

body.myplay .tags{ margin-top: 0.6rem; display: flex; gap: 0.35rem; flex-wrap: wrap; }
body.myplay .tag{
    background: rgba(34,211,238,0.1);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

body.myplay .empty{
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: center;
    color: var(--muted);
}

body.myplay form label{
    display: block;
    margin-bottom: 0.8rem;
    color: var(--muted);
}
form input[type="text"],
form input[type="password"],
form input[type="file"],
form textarea,
body.myplay form select{
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0b1224;
    color: var(--text);
}
body.myplay textarea{ resize: vertical; }
body.myplay .checkbox{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}
body.myplay .checkbox input[type="checkbox"]{
    width: auto;
}

body.myplay .flex{ display: flex; gap: 1rem; }
body.myplay .grow{ flex: 1; }
body.myplay .auth-inline{ display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
body.myplay .hint{ color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 1rem; }

body.myplay .flash{
    background: rgba(34,211,238,0.12);
    border: 1px solid rgba(34,211,238,0.4);
    color: var(--text);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

body.myplay .modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
body.myplay .modal.open{ display: flex; }
body.myplay .modal-content{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    width: 360px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
body.myplay .modal-content h3{ margin-top: 0; }
body.myplay .close{
    margin-top: 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
}

body.myplay .watch{
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
body.myplay .player video{
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #0b1224;
    max-height: 70vh;
}
body.myplay .watch-info h1{ margin: 0 0 0.35rem; }
body.myplay .watch-info .meta{ color: var(--muted); margin: 0 0 0.75rem; }
body.myplay .watch-info .desc{ color: var(--text); margin: 0 0 1rem; line-height: 1.5; }
body.myplay .facts{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    margin: 0 0 1rem;
}
body.myplay .facts dt{ font-weight: 700; color: var(--muted); }
body.myplay .facts dd{ margin: 0; }
body.myplay .meta-box{
    background: #0b1224;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    overflow: auto;
}
body.myplay .meta-box pre{ margin: 0; color: var(--muted); font-size: 0.9rem; }

body.myplay .reactions{
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}
body.myplay .reactions .btn{
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
body.myplay .reactions .btn.active{
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(34,211,238,0.4);
}

body.myplay .table{
    display: grid;
    gap: 0.5rem;
}
body.myplay .table-row{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 2fr;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
}
body.myplay .table-row.head{
    background: transparent;
    border: none;
    color: var(--muted);
    font-weight: 600;
}
body.myplay .table-row .title{ font-weight: 700; }
body.myplay .table-row .meta-small{ color: var(--muted); font-size: 0.85rem; }
body.myplay .meta-small{ color: var(--muted); font-size: 0.9rem; }
body.myplay .inline-form{
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
body.myplay .inline-form select{
    background: #0b1224;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
}

@media (max-width: 1000px) {
    body.myplay .table-row{
        grid-template-columns: 1fr;
    }
}

body.myplay.shorts-body.myplay{
    background: linear-gradient(180deg, #0b1224 0%, #0f172a 50%, #0b0f1f 100%);
}
body.myplay .shorts-feed{
    height: calc(100vh - 70px);
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    margin: 0;
}
body.myplay .short-card{
    position: relative;
    height: calc(100vh - 70px);
    scroll-snap-align: start;
    display: grid;
    place-items: center;
    background: #000;
}
body.myplay .short-video{
    max-height: 100%;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #0b1224;
}
body.myplay .short-overlay{
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    color: var(--text);
}
body.myplay .short-info h2{ margin: 0 0 0.2rem; }
body.myplay .short-info .meta{ margin: 0; color: var(--muted); }

body.myplay .watch-suggestions{
    display: grid;
    gap: 0.8rem;
}
body.myplay .suggest-card{
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.6rem;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
}
body.myplay .suggest-thumb{
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(34,211,238,0.2), rgba(168,85,247,0.18));
    display: grid;
    place-items: center;
}
body.myplay .suggest-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.myplay .suggest-info h3{
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
}
body.myplay .suggest-info .meta{
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    body.myplay .topbar{ flex-wrap: wrap; }
    body.myplay .watch{ grid-template-columns: 1fr; }
    body.myplay .page{ padding: 1.25rem; }
}


/* mypost.kcapw.com */
body.mypost *{ box-sizing: border-box; margin: 0; padding: 0; }
        
        body.mypost{
            font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            background: var(--winter-bg);
            background-size: var(--winter-bg-size);
            background-position: var(--winter-bg-position);
            background-attachment: fixed;
            animation: snow-drift 24s linear infinite;
            color: var(--text);
            padding: 1.5rem;
            min-height: 100vh;
        }
        
        body.mypost .container{
            max-width: 48rem;
            margin: 0 auto 3rem;
        }

        body.mypost .glass{
            background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
            border: 1px solid var(--border);
            border-radius: 18px;
            box-shadow: 0 24px 60px rgba(0,0,0,0.35);
            backdrop-filter: blur(14px);
        }
        
        body.mypost .header{
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            gap: 1rem;
        }
        
        body.mypost .header h1{
            font-size: 2rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.01em;
        }

        body.mypost .eyebrow{
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.35rem 0.75rem;
            border-radius: 999px;
            background: rgba(34,211,238,0.12);
            color: var(--accent);
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        body.mypost .actions{
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }
        
        body.mypost .btn{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            padding: 0.7rem 1.1rem;
            font-size: 0.95rem;
            font-weight: 600;
            border-radius: 0.9rem;
            text-decoration: none;
            border: 1px solid transparent;
            cursor: pointer;
            transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
        }
        
        body.mypost .btn-primary{
            background: linear-gradient(135deg, var(--primary), #1740b5);
            color: #fff;
            box-shadow: 0 12px 30px rgba(37,99,235,0.35);
        }
        
        body.mypost .btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 14px 34px rgba(37,99,235,0.4); background: linear-gradient(135deg, var(--primary-hover), #12369a); }
        body.mypost .btn-ghost{
            background: rgba(255,255,255,0.04);
            color: #fff;
            border-color: var(--border);
        }
        body.mypost .btn-ghost:hover{ border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
        body.mypost .btn-danger{
            background: linear-gradient(135deg, #ef4444, #b91c1c);
            color: #fff;
            box-shadow: 0 12px 28px rgba(239,68,68,0.35);
        }
        body.mypost .btn-danger:hover{ transform: translateY(-1px); }

        body.mypost .hero{
            padding: 1.5rem;
            margin-bottom: 1.25rem;
        }

        body.mypost .hero h2{
            font-size: 1.25rem;
            color: #e2e8f0;
            margin-bottom: 0.25rem;
            letter-spacing: -0.01em;
        }

        body.mypost .hero p{ color: var(--text-secondary); font-size: 0.98rem; }
        
        body.mypost .story{
            background: var(--surface);
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 1.25rem;
            border: 1px solid var(--border);
            box-shadow: 0 20px 44px rgba(0,0,0,0.35);
            transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms, border-color 220ms;
        }

        /* Modern card expansion on hover */
        body.mypost .story.story-card{ transform-origin: center top; }
        body.mypost .story.story-card:hover{ transform: translateY(-6px) scale(1.01); box-shadow: 0 24px 50px rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.14); }

        body.mypost .story-header{
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.85rem;
            gap: 0.75rem;
        }
        
        body.mypost .username{
            font-weight: 700;
            color: #fff;
            font-size: 1.05rem;
        }
        
        body.mypost .timestamp{
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        
        body.mypost .content{
            white-space: pre-wrap;
            margin-bottom: 1rem;
            color: #e5e7eb;
        }
        
        body.mypost .images{
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 0.75rem;
            margin-top: 0.75rem;
        }
        
        body.mypost .image{
            position: relative;
            padding-bottom: 100%;
            border-radius: 0.75rem;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid var(--border);
            background: #0f172a;
        }
        
        body.mypost .image img{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 220ms ease;
        }

        body.mypost .image:hover img{ transform: scale(1.03); }
        
        body.mypost .pagination{
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 2rem;
        }
        
        body.mypost .pagination a{
            padding: 0.55rem 1rem;
            text-decoration: none;
            border: 1px solid var(--border);
            border-radius: 0.75rem;
            color: #e2e8f0;
            background: rgba(255,255,255,0.03);
            transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
        }
        
        body.mypost .pagination a:hover{ background: rgba(37,99,235,0.1); border-color: rgba(37,99,235,0.4); transform: translateY(-1px); }
        body.mypost .pagination .current{
            background: linear-gradient(135deg, var(--primary), #1d4ed8);
            border-color: transparent;
            color: white;
            box-shadow: 0 10px 24px rgba(37,99,235,0.3);
        }

        /* Drop-zone for images */
        body.mypost .drop-zone{
            border: 1.5px dashed var(--border);
            border-radius: 1rem;
            padding: 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            cursor: pointer;
            background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
            transition: border-color 150ms, background 150ms, transform 150ms, box-shadow 150ms;
        }

        body.mypost .drop-zone.dragover{
            border-color: var(--primary);
            background: linear-gradient(145deg, rgba(37,99,235,0.08), rgba(34,211,238,0.06));
            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(37,99,235,0.18);
        }

        body.mypost .drop-zone .dz-text{ color: var(--text-secondary); font-size: 0.95rem; }

        body.mypost .preview-grid{ display:flex; gap:0.5rem; flex-wrap:wrap; }

        /* Modern form controls */
        body.mypost .form-group{ margin-bottom: 1rem; color: var(--text-secondary); font-size: 0.95rem; }
        body.mypost .form-group label{ display:block; margin-bottom: 0.4rem; font-weight: 600; color: #cbd5e1; }

        body.mypost input[type="text"], body.mypost textarea{
            width: 100%;
            padding: 0.9rem 1rem;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
            font-size: 1rem;
            color: var(--text);
            transition: box-shadow 160ms, border-color 160ms, transform 160ms;
            box-shadow: 0 6px 18px rgba(0,0,0,0.2);
        }

        body.mypost textarea{
            min-height: 170px;
            resize: vertical;
            line-height: 1.6;
        }

        body.mypost input[type="text"]:focus, body.mypost textarea:focus{
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 14px 34px rgba(37,99,235,0.25);
            transform: translateY(-1px);
        }

        body.mypost button, body.mypost input[type="submit"]{
            font-family: inherit;
        }

        body.mypost .report-btn{ border: none; }

        body.mypost .section-title{
            font-size: 1.15rem;
            margin-bottom: 0.35rem;
            color: #fff;
            font-weight: 700;
            letter-spacing: -0.01em;
        }
        body.mypost #status{ margin-top: 0.5rem; color: var(--text-secondary); }
        
@media (max-width: 640px){
            body.mypost{ padding: 1rem; }
            body.mypost .story{ padding: 1.15rem; border-radius: 0.9rem; }
            body.mypost .header{ flex-direction: column; align-items: flex-start; }
            body.mypost .actions{ width: 100%; }
            body.mypost .actions a, body.mypost .actions button{ flex: 1; justify-content: center; }
            body.mypost .images{ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
        }
        
        body.mypost #lightbox{
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.9);
            padding: 2rem;
            z-index: 100;
        }
        
        body.mypost #lightbox.active{
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        body.mypost #lightbox img{
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }


/* proxy.kcapw.com */
body.proxy-home{
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: #0b0b0b;
    color: #eaeaea;
    margin: 0;
    padding: 40px
}

body.proxy-home .card{
    max-width: 760px;
    margin: 0 auto;
    background: #121212;
    border: 1px solid #2a2a2a;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3)
}

body.proxy-home input[type=text]{
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #f0f0f0
}

body.proxy-home button{
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    background: #2d6cdf;
    color: #fff;
    cursor: pointer
}

body.proxy-home small{
    color: #aaa
}

body.proxy-home code{
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 6px
}
