/* ==========================================================================
   tweet.css — X(Twitter)バズりランキング・動画詳細ページ専用スタイル
   Tailwind CDN を廃止し、必要なユーティリティクラスをここで定義
   ========================================================================== */

/* --------------------------------------------------------------------------
   カスタムコンポーネント
   -------------------------------------------------------------------------- */

/* ページH1タイトル */
.page-title {
    background: linear-gradient(135deg, #ffe0f0 0%, #ff2d78 50%, #9b5df5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.page-title::after {
    content: '';
    display: block;
    height: 3px;
    margin-top: 6px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #ff2d78, #9b5df5, transparent);
}

/* ビデオカード（ガラスエフェクト） */
.video-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
/* カード全体を覆う透明リンク（詳細ページへ） */
.video-card-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 0;
}
/* 女優名・FANZAボタンはオーバーレイより前面に */
.video-card-above {
    position: relative;
    z-index: 1;
}
.video-card:hover {
    border-color: rgba(255, 45, 120, 0.45);
    transform: translateY(-4px);
    box-shadow:
        0 16px 48px rgba(255, 45, 120, 0.15),
        0 0 0 1px rgba(255, 45, 120, 0.2);
}

/* ランクバッジ */
.rank-1 { background: linear-gradient(135deg, #ffd700, #ff8c00); box-shadow: 0 0 14px rgba(255, 165, 0, 0.6); }
.rank-2 { background: linear-gradient(135deg, #e8e8e8, #a0a0a0); box-shadow: 0 0 10px rgba(180, 180, 180, 0.5); }
.rank-3 { background: linear-gradient(135deg, #d4854a, #a0522d); box-shadow: 0 0 10px rgba(205, 127, 50, 0.5); }
.rank-other { background: rgba(80, 80, 100, 0.7); }

/* フィルターピル */
.filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0bc;
    transition: all 0.2s ease;
}
.filter-pill:hover {
    background: rgba(255, 45, 120, 0.1);
    border-color: rgba(255, 45, 120, 0.35);
    color: #fff;
}
.filter-pill-active {
    background: linear-gradient(135deg, #ff2d78, #9b5df5);
    border: 1px solid transparent;
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 45, 120, 0.45);
}

/* FANZAボタン */
.fanza-btn {
    background: linear-gradient(135deg, #ff2d78, #ff1493);
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(255, 45, 120, 0.35);
}
.fanza-btn:hover {
    background: linear-gradient(135deg, #ff1493, #9b5df5);
    box-shadow: 0 4px 18px rgba(255, 45, 120, 0.55);
    transform: translateY(-1px);
}

/* テキスト省略 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ページコンテンツラッパー */
.tweet-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(64px + 2rem) 20px 2rem;
}

/* --------------------------------------------------------------------------
   Tailwind ユーティリティ代替クラス
   （このページ内で使用しているクラスのみ定義）
   -------------------------------------------------------------------------- */

/* Display */
.flex  { display: flex; }
.block { display: block; }
.inline-block { display: inline-block; }
.grid  { display: grid; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-2    { top: 0.5rem; }
.left-0   { left: 0; }
.left-2   { left: 0.5rem; }
.right-0  { right: 0; }
.z-10     { z-index: 10; }

/* Flex */
.flex-wrap    { flex-wrap: wrap; }
.flex-shrink-0{ flex-shrink: 0; }
.flex-1       { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.min-w-0      { min-width: 0; }

/* Grid — ベース（mobile-first: 1カラム） */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:col-span-2  { grid-column: span 2 / span 2; }
    .lg\:col-span-1  { grid-column: span 1 / span 1; }
}

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Margin */
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mt-1  { margin-top: 0.25rem; }
.mt-1\.5{ margin-top: 0.375rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }

/* Padding */
.p-4   { padding: 1rem; }
.p-3\.5{ padding: 0.875rem; }
.px-3  { padding-left: 0.75rem;  padding-right: 0.75rem; }
.px-3\.5{ padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4  { padding-left: 1rem;     padding-right: 1rem; }
.px-8  { padding-left: 2rem;     padding-right: 2rem; }
.py-1  { padding-top: 0.25rem;   padding-bottom: 0.25rem; }
.py-1\.5{ padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2  { padding-top: 0.5rem;    padding-bottom: 0.5rem; }
.py-3  { padding-top: 0.75rem;   padding-bottom: 0.75rem; }
.py-24 { padding-top: 6rem;      padding-bottom: 6rem; }

/* Space Y */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Typography */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.font-light   { font-weight: 300; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.leading-snug { line-height: 1.375; }
.tracking-wide  { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.text-center    { text-align: center; }

/* Colors — Text */
.text-white    { color: #ffffff; }
.text-gray-300 { color: rgb(209, 213, 219); }
.text-gray-400 { color: rgb(156, 163, 175); }
.text-gray-500 { color: rgb(107, 114, 128); }
.text-accent   { color: #ff2d78; }

/* Colors — Background */
.bg-black      { background-color: #000000; }
.bg-primary    { background-color: #0a0a1e; }
.bg-secondary  { background-color: #0f0f28; }
.bg-accent     { background-color: #ff2d78; }
.bg-gray-700   { background-color: rgb(55, 65, 81); }

/* Width / Height */
.w-full { width: 100%; }
.w-32   { width: 8rem; }
.w-8    { width: 2rem; }
.w-5    { width: 1.25rem; }
.w-3\.5 { width: 0.875rem; }
.h-8    { height: 2rem; }
.h-5    { height: 1.25rem; }
.h-3\.5 { height: 0.875rem; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Border Radius */
.rounded      { border-radius: 0.25rem; }
.rounded-lg   { border-radius: 0.5rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Borders */
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-gray-700 { border-color: rgb(55, 65, 81); }

/* Opacity */
.opacity-0  { opacity: 0; }
.opacity-70 { opacity: 0.7; }

/* Object fit */
.aspect-video { aspect-ratio: 16 / 9; }
.object-cover { object-fit: cover; }

/* Misc */
.cursor-not-allowed { cursor: not-allowed; }
.pointer-events-none { pointer-events: none; }

/* Shadows */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Transitions */
.transition {
    transition: color 150ms ease, background-color 150ms ease,
                border-color 150ms ease, opacity 150ms ease,
                box-shadow 150ms ease, transform 150ms ease;
}
.transition-transform { transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors    { transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                                    background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                                    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-opacity   { transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Hover utilities */
.hover\:text-accent:hover  { color: #ff2d78; }
.hover\:bg-gray-600:hover  { background-color: rgb(75, 85, 99); }
.hover\:bg-red-600:hover   { background-color: rgb(220, 38, 38); }

/* Group-hover utilities */
.group:hover .group-hover\:scale-105  { transform: scale(1.05); }
.group:hover .group-hover\:opacity-100{ opacity: 1; }
.group:hover .group-hover\:opacity-80 { opacity: 0.8; }

/* Gradient utilities（このページで使用する組み合わせのみ） */
.bg-gradient-to-t {
    background-image: linear-gradient(
        to top,
        var(--tw-gradient-from, rgba(0,0,0,0)),
        var(--tw-gradient-via,  rgba(0,0,0,0)),
        var(--tw-gradient-to,   rgba(0,0,0,0))
    );
}
.from-black\/70  { --tw-gradient-from: rgba(0, 0, 0, 0.7); }
.via-transparent { --tw-gradient-via:  transparent; }
.to-transparent  { --tw-gradient-to:   transparent; }
