# Frontend Design and Styling Guidelines This guide defines the design system, styling philosophy, and component design patterns used in the CineK (kr-phim) project. All AI agents MUST read and strictly adhere to these guidelines when modifying or creating any frontend UI. --- ## 1. Core Philosophy: Premium & Dynamic Aesthetics CineK is a premium movie streaming website. Simple, generic, or plain-looking user interfaces are NOT acceptable. Every UI must feel premium, modern, and interactive: - **Curated Palettes**: Avoid generic primary colors (e.g. basic `#0000ff` blue or `#ff0000` red). Instead, use the project's tailored palettes (CineK yellow, dark/slate neutrals). - **Responsive & Alive**: Every interactive element (buttons, cards, inputs, tabs) must have hover/active states with smooth transitions. - **Glassmorphism & Gradients**: Use smooth, semi-transparent overlays (`bg-white/5` with `backdrop-blur-md`) and linear-gradient background shapes on dark elements to create depth. - **Typography Hierarchy**: Maintain strict typographical hierarchies using clean sans-serif typography (`Be Vietnam Pro`). Avoid raw default sans-serif when possible. --- ## 2. Global Typography & Styling Variables We use **Tailwind CSS v4** and customize the theme variables inside `app/assets/css/main.css`: ### Font - **Primary Font**: `"Be Vietnam Pro"`, ui-sans-serif, system-ui, sans-serif - Imported globally via Google Fonts API. ### Primary Color Palette (CineK Yellow) Our brand color is a warm yellow: - `--color-cinek-50`: `#fefce8` - `--color-cinek-100`: `#fef9c3` - `--color-cinek-300`: `#fde047` - `--color-cinek-400`: `#facc15` - `--color-cinek-500`: `#eab308` (Primary brand color) - `--color-cinek-950`: `#422006` ### Theme Backgrounds - **Dark Mode Background**: `#0E111A` (Body background for the main streaming portal) - **Admin Light Mode Background**: `#f8fafc` (Body background for light administration views) --- ## 3. Utility Class Design System A central set of class conventions is defined in `main.css`. Always prefer these predefined styles over ad-hoc Tailwind classes to keep the markup clean and maintain visual consistency. | Utility Class | Description | Standard Usage | |---|---|---| | `.admin-page` | Layout wrapper for admin views | `
` | | `.admin-card` | Container with borders and hover state | `
` | | `.admin-card-gradient` | Container with subtle top highlights | `
` | | `.admin-input` | Standard styling for input fields (height: 11) | `` | | `.admin-input-sm` | Compact input fields for dense tables | `` | | `.admin-btn-primary` | Main action buttons (brand blue/yellow) | `